source: trunk/base/Makefile.in @ 77866

Last change on this file since 77866 was 77866, checked in by afb@…, 9 years ago

make sure to use the right make

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
RevLine 
[26177]1# $Id: Makefile.in 77866 2011-04-15 07:32:30Z afb@macports.org $
2
[53374]3PATH            = @PATH_CLEANED@
[71039]4SUBDIR          = doc src tests
[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
[77866]21        ${MAKE} clean
[18983]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::
[64644]35        [ ! -f $(DESTDIR)${sysconfdir}/macports/mp_version ] || rm -vf $(DESTDIR)${sysconfdir}/macports/mp_version
[42978]36        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 setupenv.bash  $(DESTDIR)${datadir}/macports/
[68996]37        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 macports-pubkey.pem  $(DESTDIR)${datadir}/macports/
[42978]38# Only run these scripts when not building in a destroot
39ifeq ($(DESTDIR),)
[42760]40# Add [default] tag to the central MacPorts repository, if it isn't already
[77511]41        $(TCLSH) src/upgrade_sources_conf_default.tcl "${prefix}"
42# Convert image directories (and direct mode installs) to image archives
43        $(TCLSH) src/images_to_archives.tcl "${macports_tcl_dir}"
[42978]44endif
[53662]45        @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]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 ""
[12159]48
[46954]49group::
50        @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"
51
52rmgroup::
53        @echo "deleting macports group..." && sudo dseditgroup -o delete -n . macports && echo "done! use 'make group' to re-create"
54
55
[2620]56clean::
[2770]57
[2941]58distclean::
[4091]59        rm -f config.log config.status configure.lineno
[15506]60        rm -rf autom4te.cache ${DISTDIR}
[58083]61        rm -f Makefile Mk/macports.autoconf.mk portmgr/freebsd/Makefile
[38107]62        rm -f Doxyfile
[38765]63        rm -f setupenv.bash
[7620]64
[15506]65_gettag:
[23643]66        cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}-svn
[15506]67
68_pkgdist:
[23851]69        [ ! -d ${DISTDIR}/${PKGNAME} ] || rm -rf ${DISTDIR}/${PKGNAME}
[23643]70        cd ${DISTDIR}; svn export ${PKGNAME}-svn ${PKGNAME}
71        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | gzip > ${PKGNAME}.tar.gz
72        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | bzip2 > ${PKGNAME}.tar.bz2
[32101]73        cd ${DISTDIR}; for tarball in ${PKGNAME}.tar.*; do { \
74                for type in -md5 -sha1 -ripemd160; do { \
75                        openssl dgst $$type $$tarball; \
76                }; done >> ${DISTNAME}.chk.txt; \
77        }; done
[15506]78
79_dopkg: _gettag _pkgdist
80
[22648]81# This target fetches a tagged distribution from svn, and generates tarballs and checksums for it
[22641]82distfromsvn:
[26811]83        @[ -n "${DISTVER}" ] || { echo Must specify DISTVER, like: make DISTVER=1.4.0 distfromsvn; exit 1; }
[15506]84        [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
85        rm -f ${DISTDIR}/${DISTNAME}.chk.txt
[23259]86        ${MAKE} SVNTAG=${DISTTAG}/base/ PKGNAME=${DISTNAME} _dopkg
[22648]87ifeq ($(ARC),yes)
[23259]88        ${MAKE} SVNTAG=${DISTARCTAG} PKGNAME=${DISTARCNAME} _dopkg
[22648]89endif
[15506]90
[28761]91tcldoc:
[65497]92        @[ -e "${prefix}/bin/tcldoc" ] \
93                || { echo "Install tcldoc with MacPorts in ${prefix} first."; exit 1; }
94        find src -name '*.tcl' | xargs ${TCLDOC} --verbose --title "MacPorts Documentation" --force tcldoc
[28761]95
[34251]96tcldox:
[65497]97        @[ -e "${prefix}/bin/doxygen" -a -e "${prefix}/bin/tcl-dox" -a -e "${prefix}/bin/dot" ] \
98                || { echo "Install doxygen, tcl-dox and graphviz with MacPorts in ${prefix} first."; exit 1; }
99        ${prefix}/bin/doxygen
[34251]100
[7620]101test::
[15506]102
[34251]103.PHONY: dist _gettag _pkgdist _dopkg tcldoc tcldox
Note: See TracBrowser for help on using the repository browser.