--- Makefile.orig 2003-09-20 08:17:34.000000000 -0700 +++ Makefile 2014-01-01 12:27:59.000000000 -0800 @@ -2,14 +2,9 @@ # - TODO: MAKE NEATER ONE # This makefile should work under most POSIX OSes (at least FreeBSD) -BINDIR = /usr/local/bin -MANDIR = /usr/local/man - - -CFLAGS = -O2 -pipe -Wall - +all: fnteditfs fnteditfs: fnteditfs.o font.o stack.o - gcc -o fnteditfs fnteditfs.o font.o stack.o -lcurses + ${CC} -o fnteditfs fnteditfs.o font.o stack.o -lcurses strip fnteditfs fnteditfs.o: fnteditfs.c font.h stack.h @@ -17,8 +12,8 @@ stack.o: stack.c stack.h install: fnteditfs fnteditfs.1 - cp fnteditfs $(BINDIR) - gzip < fnteditfs.1 > $(MANDIR)/man1/fnteditfs.1.gz + __INSTALL_SCRIPT__ fnteditfs __PREFIX__/bin + __INSTALL_MAN__ fnteditfs.1 __PREFIX__/man/man1 clean: rm -f *.o fnteditfs