--- Makefile.orig Mon Feb 15 11:54:06 1999 +++ Makefile Wed Mar 13 23:41:36 2002 @@ -6,15 +6,15 @@ # warranties, including, without limitation, the implied warranties # of merchant-ability and fitness for a particular purpose. -CC=gcc -CFLAGS=-O2 -Wall -fomit-frame-pointer #-m486 -LDFLAGS=-s +CC?= gcc +CFLAGS?= -O2 -Wall +LDFLAGS?= +BINDIR= ${PREFIX}/bin +MANDIR= ${PREFIX}/man/man1 VERSION=1.3 TREE_DEST=tree -BINDIR=/usr/local/bin MAN=tree.1 -MANDIR=/usr/man/man1 all: tree @@ -28,17 +28,15 @@ if [ -e tree.o ]; then rm *.o; fi rm -f *~ -install: - install -d $(BINDIR) $(MANDIR) - if [ -e $(TREE_DEST) ]; then \ - install -s $(TREE_DEST) $(BINDIR)/$(TREE_DEST); \ - fi - install $(MAN) $(MANDIR)/$(MAN) +install: $(TREE_DEST) $(MAN) + mkdir -p $(BINDIR) + mkdir -p $(MANDIR) + ${BSD_INSTALL_PROGRAM} $(TREE_DEST) $(BINDIR) + ${BSD_INSTALL_MAN} $(MAN) $(MANDIR) distclean: if [ -e tree.o ]; then rm *.o; fi rm -f *~ - dist: distclean tar zcf ../tree-$(VERSION).tgz -C .. tree-$(VERSION)/