SUBDIR = config doc src portmgr 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/dports.autoconf.mk all:: Mk/dports.autoconf.mk Mk/dports.autoconf.mk: Mk/dports.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/dports.subdir.mk install:: @echo "" @echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, run:" @echo "" @echo "sudo port selfupdate" @echo "" @echo "Please read port(1) and the MacPorts Wiki at http://trac.macports.org/ for full documentation." @echo "" clean:: distclean:: rm -f config.log config.status configure.lineno rm -rf autom4te.cache ${DISTDIR} rm -f Makefile Mk/dports.autoconf.mk _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 type in -md5 -sha1 -ripemd160; do openssl dgst $$type ${PKGNAME}.tar.gz ${PKGNAME}.tar.bz2; done >> ${DISTNAME}.chk.txt _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 dist; 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 test:: .PHONY: dist _gettag _pkgdist _dopkg