source: trunk/base/Makefile.in @ 25770

Last change on this file since 25770 was 24106, checked in by jberry@…, 13 years ago

Remove installation upgrade from darwinports 1.1 --> 1.2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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        @echo ""
31        @echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, run:"
32        @echo ""
33        @echo "sudo port selfupdate"
34        @echo ""
35        @echo "Please read port(1) and the MacPorts Wiki at http://trac.macports.org/ for full documentation."
36        @echo ""
37
38clean::
39
40distclean::
41        rm -f config.log config.status configure.lineno
42        rm -rf autom4te.cache ${DISTDIR}
43        rm -f Makefile Mk/dports.autoconf.mk
44
45_gettag:
46        cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}-svn
47
48_pkgdist:
49        [ ! -d ${DISTDIR}/${PKGNAME} ] || rm -rf ${DISTDIR}/${PKGNAME}
50        cd ${DISTDIR}; svn export ${PKGNAME}-svn ${PKGNAME}
51        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | gzip > ${PKGNAME}.tar.gz
52        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | bzip2 > ${PKGNAME}.tar.bz2
53        cd ${DISTDIR}; for type in -md5 -sha1 -ripemd160; do openssl dgst $$type ${PKGNAME}.tar.gz ${PKGNAME}.tar.bz2; done >> ${DISTNAME}.chk.txt
54
55_dopkg: _gettag _pkgdist
56
57# This target fetches a tagged distribution from svn, and generates tarballs and checksums for it
58distfromsvn:
59        @[ -n "${DISTVER}" ] || ( echo Must specify DISTVER, like: make DISTVER=1.4.0 dist; exit 1 )
60        [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
61        rm -f ${DISTDIR}/${DISTNAME}.chk.txt
62        ${MAKE} SVNTAG=${DISTTAG}/base/ PKGNAME=${DISTNAME} _dopkg
63ifeq ($(ARC),yes)
64        ${MAKE} SVNTAG=${DISTARCTAG} PKGNAME=${DISTARCNAME} _dopkg
65endif
66
67test::
68
69.PHONY: dist _gettag _pkgdist _dopkg
Note: See TracBrowser for help on using the repository browser.