source: trunk/base/Makefile.in @ 32101

Last change on this file since 32101 was 32101, checked in by jmpp@…, 13 years ago

It makes much more sense to group all three types of checksums for a single tarball together
in the chk file that comes with each release (from the base/Makefile's "distfromsvn" target), as in
{md5,sha1,ripemd160} for tar.gz and then for tar.bz2, rather than all types of tarballs for a single
checksum type, as in {tar.gz,tar.bz2} for md5 and then for sha1 and ripemd160.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Makefile.in 32101 2007-12-16 23:11:48Z jmpp@macports.org $
2
3SUBDIR          = config doc src
4DISTDIR         = dist
5DISTVER         =
6DISTTAG         = release_${subst .,_,${DISTVER}}
7DISTNAME        = MacPorts-${DISTVER}
8DISTARCTAG      = ${DISTTAG}-archive
9DISTARCNAME     = ${DISTNAME}-archive
10SVNURL          = http://svn.macports.org/repository/macports
11UPGRADECHECK    = ${localstatedir}/macports/.mprename
12
13
14include Mk/macports.autoconf.mk
15
16
17all:: Mk/macports.autoconf.mk
18
19Mk/macports.autoconf.mk: Mk/macports.autoconf.mk.in src/config.h.in Makefile.in config.status
20        ./config.status
21        make clean
22
23config.status: configure
24        @if test -f ./config.status ; then      \
25                set -x ;                                                \
26                ./config.status --recheck ;             \
27        else                                                            \
28                set -x ;                                                \
29                echo "Source tree not configured. Use ./configure" ; \
30        fi
31
32
33include Mk/macports.upgrade.mk
34
35install:: upgrade
36
37include Mk/macports.subdir.mk
38
39install::
40        @echo ""; echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, run:"; echo ""
41        @echo "sudo port selfupdate"; echo ""
42        @echo "Please read port(1) and the MacPorts Wiki at http://trac.macports.org/ for full documentation."; echo ""
43        @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 ""
44
45clean::
46
47distclean::
48        rm -f config.log config.status configure.lineno
49        rm -rf autom4te.cache ${DISTDIR}
50        rm -f Makefile Mk/macports.autoconf.mk
51
52_gettag:
53        cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}-svn
54
55_pkgdist:
56        [ ! -d ${DISTDIR}/${PKGNAME} ] || rm -rf ${DISTDIR}/${PKGNAME}
57        cd ${DISTDIR}; svn export ${PKGNAME}-svn ${PKGNAME}
58        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | gzip > ${PKGNAME}.tar.gz
59        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | bzip2 > ${PKGNAME}.tar.bz2
60        cd ${DISTDIR}; for tarball in ${PKGNAME}.tar.*; do { \
61                for type in -md5 -sha1 -ripemd160; do { \
62                        openssl dgst $$type $$tarball; \
63                }; done >> ${DISTNAME}.chk.txt; \
64        }; done
65
66_dopkg: _gettag _pkgdist
67
68# This target fetches a tagged distribution from svn, and generates tarballs and checksums for it
69distfromsvn:
70        @[ -n "${DISTVER}" ] || { echo Must specify DISTVER, like: make DISTVER=1.4.0 distfromsvn; exit 1; }
71        [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
72        rm -f ${DISTDIR}/${DISTNAME}.chk.txt
73        ${MAKE} SVNTAG=${DISTTAG}/base/ PKGNAME=${DISTNAME} _dopkg
74ifeq ($(ARC),yes)
75        ${MAKE} SVNTAG=${DISTARCTAG} PKGNAME=${DISTARCNAME} _dopkg
76endif
77
78tcldoc:
79        find src -name '*.tcl' | xargs tcldoc --verbose --title "MacPorts Documentation" --force tcldoc
80
81test::
82
83.PHONY: dist _gettag _pkgdist _dopkg tcldoc
Note: See TracBrowser for help on using the repository browser.