freebsd-ports/sysutils/recoverdm/files/patch-Makefile
Vanilla I. Shu d52f915982 1: Support STAGEDIR.
2: switch to new LIB_DEPENDS syntax.
2013-11-16 04:15:28 +00:00

33 lines
920 B
Text

--- Makefile.orig 2009-01-06 23:22:12.000000000 +0800
+++ Makefile 2013-11-16 11:41:56.000000000 +0800
@@ -1,6 +1,6 @@
VERSION=0.20
-CFLAGS=-Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"$(VERSION)\"
+CFLAGS+=-Wall -DVERSION=\"$(VERSION)\"
LDFLAGS=
OBJSr=recoverdm.o dev.o io.o utils.o error.o
@@ -8,17 +8,17 @@ OBJSm=mergebad.o io.o utils.o error.o
all: recoverdm mergebad
+install:
+ ${INSTALL} -m 755 recoverdm $(DESTDIR)$(PREFIX)/bin
+ ${INSTALL} -m 755 mergebad $(DESTDIR)$(PREFIX)/bin
+ ${INSTALL} -m 644 recoverdm.1 $(DESTDIR)$(PREFIX)/man/man1
+
recoverdm: $(OBJSr)
$(CC) -Wall -W $(OBJSr) $(LDFLAGS) -o recoverdm
mergebad: $(OBJSm)
$(CC) -Wall -W $(OBJSm) $(LDFLAGS) -o mergebad
-install:
- cp recoverdm mergebad /usr/local/bin
- echo
- echo Oh, blatant plug: http://keetweej.vanheusden.com/wishlist.html
-
clean:
rm -f $(OBJSr) $(OBJSm) recoverdm mergebad core