source: trunk/base/Makefile.in @ 42760

Last change on this file since 42760 was 42760, checked in by jmr@…, 12 years ago

Upgrade sources.conf before cleaning the dep_map, since the latter can fail otherwise.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
RevLine 
[26177]1# $Id: Makefile.in 42760 2008-11-30 16:52:48Z jmr@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::
[38344]40        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 setupenv.bash  ${datadir}/macports/
[42760]41# Add [default] tag to the central MacPorts repository, if it isn't already
42        $(TCLSH) src/upgrade_sources_conf_default.tcl ${prefix}
[40159]43# Remove duplicate entries from the dependency map (could occur with 1.6 and earlier):
44        $(TCLSH) src/dep_map_clean.tcl ${TCL_PACKAGE_DIR}
[26238]45        @echo ""; echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, run:"; echo ""
[32549]46        @echo "sudo port -v selfupdate"; echo ""
47        @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]48        @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]49
[2620]50clean::
[2770]51
[2941]52distclean::
[4091]53        rm -f config.log config.status configure.lineno
[15506]54        rm -rf autom4te.cache ${DISTDIR}
[33051]55        rm -f Makefile Mk/macports.autoconf.mk portmgr/fedora/macports.spec portmgr/freebsd/Makefile
[38107]56        rm -f Doxyfile
[38765]57        rm -f setupenv.bash
[7620]58
[15506]59_gettag:
[23643]60        cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}-svn
[15506]61
62_pkgdist:
[23851]63        [ ! -d ${DISTDIR}/${PKGNAME} ] || rm -rf ${DISTDIR}/${PKGNAME}
[23643]64        cd ${DISTDIR}; svn export ${PKGNAME}-svn ${PKGNAME}
65        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | gzip > ${PKGNAME}.tar.gz
66        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | bzip2 > ${PKGNAME}.tar.bz2
[32101]67        cd ${DISTDIR}; for tarball in ${PKGNAME}.tar.*; do { \
68                for type in -md5 -sha1 -ripemd160; do { \
69                        openssl dgst $$type $$tarball; \
70                }; done >> ${DISTNAME}.chk.txt; \
71        }; done
[15506]72
73_dopkg: _gettag _pkgdist
74
[22648]75# This target fetches a tagged distribution from svn, and generates tarballs and checksums for it
[22641]76distfromsvn:
[26811]77        @[ -n "${DISTVER}" ] || { echo Must specify DISTVER, like: make DISTVER=1.4.0 distfromsvn; exit 1; }
[15506]78        [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
79        rm -f ${DISTDIR}/${DISTNAME}.chk.txt
[23259]80        ${MAKE} SVNTAG=${DISTTAG}/base/ PKGNAME=${DISTNAME} _dopkg
[22648]81ifeq ($(ARC),yes)
[23259]82        ${MAKE} SVNTAG=${DISTARCTAG} PKGNAME=${DISTARCNAME} _dopkg
[22648]83endif
[15506]84
[28761]85tcldoc:
86        find src -name '*.tcl' | xargs tcldoc --verbose --title "MacPorts Documentation" --force tcldoc
87
[34251]88tcldox:
89        doxygen
90
[7620]91test::
[15506]92
[34251]93.PHONY: dist _gettag _pkgdist _dopkg tcldoc tcldox
Note: See TracBrowser for help on using the repository browser.