# $Id$
SUBDIR = doc src
DISTDIR = dist
DISTVER =
DISTTAG = release_${subst .,_,${DISTVER}}
DISTNAME = MacPorts-${DISTVER}
DISTARCTAG = ${DISTTAG}-archive
DISTARCNAME = ${DISTNAME}-archive
SVNURL = http://svn.macports.org/repository/macports
include Mk/macports.autoconf.mk
all:: Mk/macports.autoconf.mk
Mk/macports.autoconf.mk: Mk/macports.autoconf.mk.in src/config.h.in Makefile.in config.status
./config.status
make clean
config.status: configure
@if test -f ./config.status ; then \
set -x ; \
./config.status --recheck ; \
else \
set -x ; \
echo "Source tree not configured. Use ./configure" ; \
fi
include Mk/macports.upgrade.mk
install:: upgrade
[ ! -f ${sysconfdir}/macports/mp_version ] || rm -vf ${sysconfdir}/macports/mp_version
include Mk/macports.subdir.mk
install::
$(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 setupenv.bash ${datadir}/macports/
# Remove duplicate entries from the dependency map (could occur with 1.6 and earlier):
$(TCLSH) src/dep_map_clean.tcl ${TCL_PACKAGE_DIR}
@echo ""; echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, run:"; echo ""
@echo "sudo port -v selfupdate"; echo ""
@echo "Please read \"man port\", the MacPorts guide at http://guide.macports.org/ and Wiki at http://trac.macports.org/ for full documentation."; echo ""
@echo "Stray sources might have been left in the legacy ${localstatedir}/db/dports directory after this upgrade, which moved most of what it could to ${localstatedir}/macports, so you might want to look in the former and cleanup manually."; echo ""
clean::
distclean::
rm -f config.log config.status configure.lineno
rm -rf autom4te.cache ${DISTDIR}
rm -f Makefile Mk/macports.autoconf.mk portmgr/fedora/macports.spec portmgr/freebsd/Makefile
rm -f Doxyfile
rm -f setupenv.bash
_gettag:
cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}-svn
_pkgdist:
[ ! -d ${DISTDIR}/${PKGNAME} ] || rm -rf ${DISTDIR}/${PKGNAME}
cd ${DISTDIR}; svn export ${PKGNAME}-svn ${PKGNAME}
cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | gzip > ${PKGNAME}.tar.gz
cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | bzip2 > ${PKGNAME}.tar.bz2
cd ${DISTDIR}; for tarball in ${PKGNAME}.tar.*; do { \
for type in -md5 -sha1 -ripemd160; do { \
openssl dgst $$type $$tarball; \
}; done >> ${DISTNAME}.chk.txt; \
}; done
_dopkg: _gettag _pkgdist
# This target fetches a tagged distribution from svn, and generates tarballs and checksums for it
distfromsvn:
@[ -n "${DISTVER}" ] || { echo Must specify DISTVER, like: make DISTVER=1.4.0 distfromsvn; exit 1; }
[ -d ${DISTDIR} ] || mkdir ${DISTDIR}
rm -f ${DISTDIR}/${DISTNAME}.chk.txt
${MAKE} SVNTAG=${DISTTAG}/base/ PKGNAME=${DISTNAME} _dopkg
ifeq ($(ARC),yes)
${MAKE} SVNTAG=${DISTARCTAG} PKGNAME=${DISTARCNAME} _dopkg
endif
tcldoc:
find src -name '*.tcl' | xargs tcldoc --verbose --title "MacPorts Documentation" --force tcldoc
tcldox:
doxygen
test::
.PHONY: dist _gettag _pkgdist _dopkg tcldoc tcldox