source: trunk/base/Makefile.in @ 35626

Last change on this file since 35626 was 34251, checked in by afb@…, 13 years ago

tcldox target

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
RevLine 
[26177]1# $Id: Makefile.in 34251 2008-02-19 12:24:13Z afb@macports.org $
2
[32353]3SUBDIR          = doc src
[15506]4DISTDIR         = dist
5DISTVER         =
6DISTTAG         = release_${subst .,_,${DISTVER}}
[22641]7DISTNAME        = MacPorts-${DISTVER}
[15506]8DISTARCTAG      = ${DISTTAG}-archive
9DISTARCNAME     = ${DISTNAME}-archive
[22641]10SVNURL          = http://svn.macports.org/repository/macports
[2620]11
[30815]12
[26177]13include Mk/macports.autoconf.mk
[2770]14
[30815]15
[26177]16all:: Mk/macports.autoconf.mk
[18983]17
[26177]18Mk/macports.autoconf.mk: Mk/macports.autoconf.mk.in src/config.h.in Makefile.in config.status
[18983]19        ./config.status
20        make clean
21
22config.status: configure
[13714]23        @if test -f ./config.status ; then      \
24                set -x ;                                                \
25                ./config.status --recheck ;             \
[2998]26        else                                                            \
[13714]27                set -x ;                                                \
28                echo "Source tree not configured. Use ./configure" ; \
[2998]29        fi
30
[2620]31
[30815]32include Mk/macports.upgrade.mk
[26177]33
34install:: upgrade
[32395]35        [ ! -f ${sysconfdir}/macports/mp_version ] || rm -vf ${sysconfdir}/macports/mp_version
[26177]36
37include Mk/macports.subdir.mk
38
[12159]39install::
[26238]40        @echo ""; echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, run:"; echo ""
[32549]41        @echo "sudo port -v selfupdate"; echo ""
42        @echo "Please read \"man port\", the MacPorts guide at http://guide.macports.org/ and Wiki at http://trac.macports.org/ for full documentation."; echo ""
[26278]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 ""
[12159]44
[2620]45clean::
[2770]46
[2941]47distclean::
[4091]48        rm -f config.log config.status configure.lineno
[15506]49        rm -rf autom4te.cache ${DISTDIR}
[33051]50        rm -f Makefile Mk/macports.autoconf.mk portmgr/fedora/macports.spec portmgr/freebsd/Makefile
[7620]51
[15506]52_gettag:
[23643]53        cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}-svn
[15506]54
55_pkgdist:
[23851]56        [ ! -d ${DISTDIR}/${PKGNAME} ] || rm -rf ${DISTDIR}/${PKGNAME}
[23643]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
[32101]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
[15506]65
66_dopkg: _gettag _pkgdist
67
[22648]68# This target fetches a tagged distribution from svn, and generates tarballs and checksums for it
[22641]69distfromsvn:
[26811]70        @[ -n "${DISTVER}" ] || { echo Must specify DISTVER, like: make DISTVER=1.4.0 distfromsvn; exit 1; }
[15506]71        [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
72        rm -f ${DISTDIR}/${DISTNAME}.chk.txt
[23259]73        ${MAKE} SVNTAG=${DISTTAG}/base/ PKGNAME=${DISTNAME} _dopkg
[22648]74ifeq ($(ARC),yes)
[23259]75        ${MAKE} SVNTAG=${DISTARCTAG} PKGNAME=${DISTARCNAME} _dopkg
[22648]76endif
[15506]77
[28761]78tcldoc:
79        find src -name '*.tcl' | xargs tcldoc --verbose --title "MacPorts Documentation" --force tcldoc
80
[34251]81tcldox:
82        doxygen
83
[7620]84test::
[15506]85
[34251]86.PHONY: dist _gettag _pkgdist _dopkg tcldoc tcldox
Note: See TracBrowser for help on using the repository browser.