diff options
Diffstat (limited to 'sysutils/tree/files/patch-Makefile')
-rw-r--r-- | sysutils/tree/files/patch-Makefile | 43 |
1 files changed, 15 insertions, 28 deletions
diff --git a/sysutils/tree/files/patch-Makefile b/sysutils/tree/files/patch-Makefile index a6d9012b020d..dbcdc74dbc0d 100644 --- a/sysutils/tree/files/patch-Makefile +++ b/sysutils/tree/files/patch-Makefile @@ -1,46 +1,33 @@ ---- Makefile.orig Mon Feb 15 11:54:06 1999 -+++ Makefile Wed Mar 13 23:41:36 2002 -@@ -6,15 +6,15 @@ +--- Makefile.orig Sat Aug 14 23:07:56 2004 ++++ Makefile Thu Oct 21 11:01:14 2004 +@@ -6,10 +6,6 @@ # 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 +-#CFLAGS=-ggdb -Wall -DLINUX_BIGFILE +-CFLAGS=-O2 -Wall -fomit-frame-pointer -DLINUX_BIGFILE -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 + # Uncomment for FreeBSD: + #CC=gcc +@@ -51,13 +47,12 @@ + if [ -f tree.o ]; then rm *.o; fi rm -f *~ -install: -- install -d $(BINDIR) $(MANDIR) +- install -d $(BINDIR) +- install -d $(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) ++ $(MKDIR) $(BINDIR) ++ $(MKDIR) $(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)/ + if [ -f tree.o ]; then rm *.o; fi |