source: trunk/base/Makefile.in @ 17417

Last change on this file since 17417 was 15506, checked in by jberry, 14 years ago

Merge to HEAD changes between tags release_1_2-bp and release_1_2_0 on
release_1_2 branch. This should incorporate all changes that were made
on the 1.2 branch between the time it branched from HEAD, and the time
1.2 was tagged.

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
1SUBDIR          = config doc src portmgr
2DISTDIR         = dist
3DISTVER         =
4DISTTAG         = release_${subst .,_,${DISTVER}}
5DISTNAME        = DarwinPorts-${DISTVER}
6DISTARCTAG      = ${DISTTAG}-archive
7DISTARCNAME     = ${DISTNAME}-archive
8CVSLOGIN        = ${USER}
9
10include Mk/dports.subdir.mk
11include Mk/dports.autoconf.mk
12
13Mk/dports.autoconf.mk src/pextlib1.0/config.h: configure
14        @if test -f ./config.status ; then      \
15                set -x ;                                                \
16                ./config.status --recheck ;             \
17                touch Mk/dports.autoconf.mk ;   \
18                touch src/pextlib1.0/config.h ; \
19        else                                                            \
20                set -x ;                                                \
21                echo "Source tree not configured. Use ./configure" ; \
22        fi
23
24all:: Mk/dports.autoconf.mk
25
26install::
27        # Compatibility upgrade from dp 1.1 to dp 1.2
28        @echo "Renaming rsync'd directories from rsync.opendarwin.org to rsync.darwinports.org"
29        if test -d ${localstatedir}/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports \
30           -a ! -d ${localstatedir}/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports; then \
31                mv ${localstatedir}/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate_dports \
32                   ${localstatedir}/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports; \
33        fi
34        if test -d ${localstatedir}/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate1 \
35           -a ! -d ${localstatedir}/db/dports/sources/rsync.rsync.darwinports.org_dpupdate1; then \
36                mv ${localstatedir}/db/dports/sources/rsync.rsync.opendarwin.org_dpupdate1 \
37                   ${localstatedir}/db/dports/sources/rsync.rsync.darwinports.org_dpupdate1; \
38        fi
39
40        @echo ""
41        @echo "Congratulations, you have successfully installed the DarwinPorts system."
42        @echo ""
43        @echo "To get the Portfiles and update the system run:"
44        @echo ""
45        @echo "sudo port selfupdate"
46        @echo ""
47        @echo "Please read README_RELEASE1 and port(1)."
48        @echo ""
49
50clean::
51
52distclean::
53        rm -f config.log config.status configure.lineno
54        rm -rf autom4te.cache ${DISTDIR}
55        rm -f Makefile Mk/dports.autoconf.mk
56
57_gettag:
58        cd ${DISTDIR}; cvs -d ":ext:${CVSLOGIN}@cvs.opendarwin.org:/Volumes/src/cvs/od" co -N -r ${CVSTAG} ${REPOPATH}
59        cd ${DISTDIR}; mv ${REPOPATH} ${PKGNAME}; rm -Rf darwinports
60
61_pkgdist:
62        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar --exclude CVS -c ${PKGNAME} | gzip > ${PKGNAME}.tar.gz
63        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar --exclude CVS -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 cvs, and generates tarballs and checksums for it
69distfromcvs:
70        @[ -n "${DISTVER}" ] || ( echo Must specify DISTVER, like: make DISTVER=1.1 dist; exit 1 )
71        [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
72        rm -f ${DISTDIR}/${DISTNAME}.chk.txt
73        ${MAKE} PKGNAME=${DISTNAME} REPOPATH=darwinports/base CVSTAG=${DISTTAG} _dopkg
74        ${MAKE} PKGNAME=${DISTARCNAME} REPOPATH=darwinports CVSTAG=${DISTARCTAG} _dopkg
75
76test::
77
78.PHONY: dist _gettag _pkgdist _dopkg
Note: See TracBrowser for help on using the repository browser.