freebsd-ports/sysutils/foremost/files/patch-Makefile
Volker Stolz 166af4876b Add foremost 0.69, console program to recover files based on their
headers and footers.

PR:		ports/68414
Submitted by:	Yonatan <Yonatan@xpert.com>
2004-12-15 12:39:25 +00:00

32 lines
781 B
Text

--- Makefile.orig Fri Jan 9 13:45:23 2004
+++ Makefile Wed Jun 16 21:36:33 2004
@@ -1,5 +1,5 @@
-CC = gcc
+CC?= gcc
CC_OPTS = -Wall -O2
GOAL = foremost
@@ -14,8 +14,9 @@
#---------------------------------------------------------------------
# Where foremost gets installed
-BIN = /usr/local/bin
-MAN = /usr/local/man/man1
+PREFIX ?= /usr/local
+BIN = $(PREFIX)/bin
+MAN = $(PREFIX)/man/man1
# This should be commented out when debugging is done
#CC_OPTS += -D__DEBUG -ggdb
@@ -55,8 +56,8 @@
$(CC) -o $(GOAL) $(OBJS)
install: all
- install -CDm 755 $(GOAL) $(BIN)/$(GOAL)
- install -CDm 644 $(GOAL).1 $(MAN)/$(GOAL).1
+ install -Cm 755 $(GOAL) $(BIN)/$(GOAL)
+ install -Cm 644 $(GOAL).1 $(MAN)/$(GOAL).1
uninstall:
rm -f $(BIN)/$(GOAL) $(MAN)/$(GOAL).1