freebsd-ports/sysutils/tree/files/patch-Makefile
Patrick Li 993d91cc2c Chase checksum and bump PORTREVISION - author fix command line parsing
and symlink bug

PR:		35811
Submitted by:	maintainer
2002-03-14 07:39:54 +00:00

46 lines
1 KiB
Text

--- 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)/