source: branches/gsoc09-logging/base/Makefile.in @ 136621

Last change on this file since 136621 was 59527, checked in by blb@…, 11 years ago

Merge from trunk (may be a few missed bits to be picked up later)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
RevLine 
[26177]1# $Id: Makefile.in 59527 2009-10-16 05:29:39Z blb@macports.org $
2
[53509]3PATH            = @PATH_CLEANED@
[32353]4SUBDIR          = doc src
[15506]5DISTDIR         = dist
6DISTVER         =
7DISTTAG         = release_${subst .,_,${DISTVER}}
[22641]8DISTNAME        = MacPorts-${DISTVER}
[15506]9DISTARCTAG      = ${DISTTAG}-archive
10DISTARCNAME     = ${DISTNAME}-archive
[22641]11SVNURL          = http://svn.macports.org/repository/macports
[2620]12
[30815]13
[26177]14include Mk/macports.autoconf.mk
[2770]15
[30815]16
[26177]17all:: Mk/macports.autoconf.mk
[18983]18
[26177]19Mk/macports.autoconf.mk: Mk/macports.autoconf.mk.in src/config.h.in Makefile.in config.status
[18983]20        ./config.status
21        make clean
22
23config.status: configure
[13714]24        @if test -f ./config.status ; then      \
25                set -x ;                                                \
26                ./config.status --recheck ;             \
[2998]27        else                                                            \
[13714]28                set -x ;                                                \
29                echo "Source tree not configured. Use ./configure" ; \
[2998]30        fi
31
[26177]32include Mk/macports.subdir.mk
33
[12159]34install::
[53509]35        [ ! -f ${sysconfdir}/macports/mp_version ] || rm -vf ${sysconfdir}/macports/mp_version
[42978]36        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 setupenv.bash  $(DESTDIR)${datadir}/macports/
37# Only run these scripts when not building in a destroot
38ifeq ($(DESTDIR),)
[42760]39# Add [default] tag to the central MacPorts repository, if it isn't already
40        $(TCLSH) src/upgrade_sources_conf_default.tcl ${prefix}
[40159]41# Remove duplicate entries from the dependency map (could occur with 1.6 and earlier):
42        $(TCLSH) src/dep_map_clean.tcl ${TCL_PACKAGE_DIR}
[42978]43endif
[59527]44        @echo ""; echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, add ${prefix}/bin to your PATH and run:"; echo ""
[32549]45        @echo "sudo port -v selfupdate"; echo ""
46        @echo "Please read \"man port\", the MacPorts guide at http://guide.macports.org/ and Wiki at http://trac.macports.org/ for full documentation."; echo ""
[12159]47
[46954]48group::
49        @echo "creating a macports group..." && sudo dseditgroup -o create -n . macports && echo "done! use './configure --with-install-group=macports --with-shared-directory' if you haven't already"
50
51rmgroup::
52        @echo "deleting macports group..." && sudo dseditgroup -o delete -n . macports && echo "done! use 'make group' to re-create"
53
54
[2620]55clean::
[2770]56
[2941]57distclean::
[4091]58        rm -f config.log config.status configure.lineno
[15506]59        rm -rf autom4te.cache ${DISTDIR}
[59527]60        rm -f Makefile Mk/macports.autoconf.mk portmgr/freebsd/Makefile
[38107]61        rm -f Doxyfile
[38765]62        rm -f setupenv.bash
[7620]63
[15506]64_gettag:
[23643]65        cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}-svn
[15506]66
67_pkgdist:
[23851]68        [ ! -d ${DISTDIR}/${PKGNAME} ] || rm -rf ${DISTDIR}/${PKGNAME}
[23643]69        cd ${DISTDIR}; svn export ${PKGNAME}-svn ${PKGNAME}
70        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | gzip > ${PKGNAME}.tar.gz
71        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | bzip2 > ${PKGNAME}.tar.bz2
[32101]72        cd ${DISTDIR}; for tarball in ${PKGNAME}.tar.*; do { \
73                for type in -md5 -sha1 -ripemd160; do { \
74                        openssl dgst $$type $$tarball; \
75                }; done >> ${DISTNAME}.chk.txt; \
76        }; done
[15506]77
78_dopkg: _gettag _pkgdist
79
[22648]80# This target fetches a tagged distribution from svn, and generates tarballs and checksums for it
[22641]81distfromsvn:
[26811]82        @[ -n "${DISTVER}" ] || { echo Must specify DISTVER, like: make DISTVER=1.4.0 distfromsvn; exit 1; }
[15506]83        [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
84        rm -f ${DISTDIR}/${DISTNAME}.chk.txt
[23259]85        ${MAKE} SVNTAG=${DISTTAG}/base/ PKGNAME=${DISTNAME} _dopkg
[22648]86ifeq ($(ARC),yes)
[23259]87        ${MAKE} SVNTAG=${DISTARCTAG} PKGNAME=${DISTARCNAME} _dopkg
[22648]88endif
[15506]89
[28761]90tcldoc:
91        find src -name '*.tcl' | xargs tcldoc --verbose --title "MacPorts Documentation" --force tcldoc
92
[34251]93tcldox:
94        doxygen
95
[7620]96test::
[15506]97
[34251]98.PHONY: dist _gettag _pkgdist _dopkg tcldoc tcldox
Note: See TracBrowser for help on using the repository browser.