source: trunk/base/src/darwinports1.0/Makefile @ 14422

Last change on this file since 14422 was 14422, checked in by toby, 15 years ago
  • Make distclean work again.
  • Remove Darwinports.dylib during distclean
  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1SRCS=           darwinports.tcl darwinports_dlist.tcl darwinports_autoconf.tcl \
2                darwinports_index.tcl darwinports_fastload.tcl
3OBJS=           darwinports.o portconf.o session.o util.o
4SHLIB_NAME=     Darwinports${SHLIB_SUFFIX}
5
6INSTALLDIR=     ${DESTDIR}${TCL_PACKAGE_DIR}/darwinports1.0
7DARWIN_OLD_PKGINDEX=    ${DESTDIR}${TCL_PACKAGE_DIR}/8.3/darwinports1.0/pkgIndex.tcl
8
9ifneq ($(MAKECMDGOALS),distclean)
10include ../../Mk/dports.autoconf.mk
11endif
12include ../../Mk/dports.tea.mk
13
14test::
15
16distclean:: clean
17        rm -f darwinports_autoconf.tcl darwinports_fastload.tcl Darwinports.dylib
18
19install::
20        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
21
22        $(SILENT) set -x; for file in ${SRCS}; do \
23                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}/$$file; \
24        done
25
26        echo "${TCL_PACKAGE_DIR}" > ${prefix}/var/db/dports/.tclpackage
27
28        $(SILENT) $(TCLSH) ../pkg_mkindex.tcl ${INSTALLDIR}
29# XXX Prior installations of dports on Darwin installed darwinports1.0
30# in a version-specific Tcl path
31        $(SILENT) echo "/System/Library/Tcl" | grep "^/System/Library/Tcl" >/dev/null; \
32            if test $$? -eq 0; then \
33                if test -f ${DARWIN_OLD_PKGINDEX}; then \
34                        set -x; \
35                        rm ${DARWIN_OLD_PKGINDEX}; \
36                fi \
37            fi
Note: See TracBrowser for help on using the repository browser.