Files
macports-ports/www/webcrawl/files/patch-Makefile.diff

25 lines
645 B
Diff

--- Makefile.orig 2014-08-10 18:53:10.000000000 +0200
+++ Makefile 2014-08-10 18:53:25.000000000 +0200
@@ -1,16 +1,17 @@
OBJ=webcrawl.o http.o path.o getxref.o url.o rewrite.o rename.o
-INSTDIR=/usr/local/bin
-MAN=/usr/local/man
+PREFIX ?= /usr/local
+INSTDIR = $(DESTDIR)$(PREFIX)/bin
+MAN = $(DESTDIR)$(PREFIX)/share/man
webcrawl: $(OBJ)
- gcc -o webcrawl $(OBJ)
+ $(CC) -o webcrawl $(LDFLAGS) $(OBJ)
clean:
rm -f *.o *~ webcrawl
install: webcrawl
install webcrawl $(INSTDIR)
install webcrawl.1 $(MAN)/man1
.c.o:
- gcc -Wall -c $*.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -Wall -c $*.c
webcrawl.o: webcrawl.c web.h
http.o: http.c web.h