source: trunk/Makefile

Last change on this file was 47612, checked in by raimue@…, 8 years ago

Makefile:
Respect PREFIX for configure

File size: 445 bytes
Line 
1PREFIX= /opt/local
2SRCS=   ${PREFIX}/etc/macports/sources.conf
3
4default: all
5
6all:
7        @(cd base; [ ! -f Makefile ] && ./configure --prefix=${PREFIX} ; make all)
8
9install: all
10        @(cd base; make install)
11        @if egrep -q ^rsync ${SRCS}; then \
12          echo file://`pwd`/dports/ [default] >> ${SRCS}; \
13          sed -i .orig -e 's/^rsync/#rsync/' ${SRCS}; \
14          echo "${SRCS} automatically configured"; \
15        fi
16
17clean:
18        @(cd base; [ -f Makefile ] && make clean)
19
Note: See TracBrowser for help on using the repository browser.