source: trunk/base/Makefile.in @ 23263

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

Merging r23232 back into trunk: fixing the distfromsvn target of the main Makefile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1SUBDIR          = config doc src portmgr
2DISTDIR         = dist
3DISTVER         =
4DISTTAG         = release_${subst .,_,${DISTVER}}
5DISTNAME        = MacPorts-${DISTVER}
6DISTARCTAG      = ${DISTTAG}-archive
7DISTARCNAME     = ${DISTNAME}-archive
8SVNURL          = http://svn.macports.org/repository/macports
9
10include Mk/dports.autoconf.mk
11
12all:: Mk/dports.autoconf.mk
13
14Mk/dports.autoconf.mk: Mk/dports.autoconf.mk.in src/config.h.in Makefile.in config.status
15        ./config.status
16        make clean
17
18config.status: configure
19        @if test -f ./config.status ; then      \
20                set -x ;                                                \
21                ./config.status --recheck ;             \
22        else                                                            \
23                set -x ;                                                \
24                echo "Source tree not configured. Use ./configure" ; \
25        fi
26
27include Mk/dports.subdir.mk
28
29install::
30        # Compatibility upgrade from dp 1.1 to dp 1.2
31        @echo "Renaming rsync'd directories from rsync.opendarwin.org to rsync.darwinports.org"
32        if test -d ${DESTDIR}${localstatedir}/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports \
33           -a ! -d ${DESTDIR}${localstatedir}/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports; then \
34                mv ${DESTDIR}${localstatedir}/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports \
35                   ${DESTDIR}${localstatedir}/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports; \
36        fi
37        if test -d ${DESTDIR}${localstatedir}/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate1 \
38           -a ! -d ${DESTDIR}${localstatedir}/db/dports/sources/rsync.rsync.darwinports.org_dpupdate1; then \
39                mv ${DESTDIR}${localstatedir}/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate1 \
40                   ${DESTDIR}${localstatedir}/db/dports/sources/rsync.rsync.darwinports.org_dpupdate1; \
41        fi
42
43        @echo ""
44        @echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, run:"
45        @echo ""
46        @echo "sudo port selfupdate"
47        @echo ""
48        @echo "Please read port(1) and the MacPorts Wiki at http://trac.macports.org/ for full documentation."
49        @echo ""
50
51clean::
52
53distclean::
54        rm -f config.log config.status configure.lineno
55        rm -rf autom4te.cache ${DISTDIR}
56        rm -f Makefile Mk/dports.autoconf.mk
57
58_gettag:
59        cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}
60
61_pkgdist:
62        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar --exclude .svn -c ${PKGNAME} | gzip > ${PKGNAME}.tar.gz
63        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar --exclude .svn -c ${PKGNAME} | bzip2 > ${PKGNAME}.tar.bz2
64        cd ${DISTDIR}; for type in -md5 -sha1 -ripemd160; do openssl dgst $$type ${PKGNAME}.tar.gz ${PKGNAME}.tar.bz2; done >> ${DISTNAME}.chk.txt
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 dist; 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
78test::
79
80.PHONY: dist _gettag _pkgdist _dopkg
Note: See TracBrowser for help on using the repository browser.