mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@124120 d073be05-634f-4543-b044-5fe20cf6d1d6
25 lines
645 B
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
|