source: trunk/base/Makefile.in @ 38109

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

base:
Add a new setupenv.sh script which can be used to setup the environment for
MacPorts. It will be installed to ${prefix}/share/macports/setupenv.sh and can
be sourced from your profile.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1# $Id: Makefile.in 38109 2008-07-06 20:27:48Z raimue@macports.org $
2
3SUBDIR          = doc src
4DISTDIR         = dist
5DISTVER         =
6DISTTAG         = release_${subst .,_,${DISTVER}}
7DISTNAME        = MacPorts-${DISTVER}
8DISTARCTAG      = ${DISTTAG}-archive
9DISTARCNAME     = ${DISTNAME}-archive
10SVNURL          = http://svn.macports.org/repository/macports
11
12
13include Mk/macports.autoconf.mk
14
15
16all:: Mk/macports.autoconf.mk
17
18Mk/macports.autoconf.mk: Mk/macports.autoconf.mk.in src/config.h.in Makefile.in config.status
19        ./config.status
20        make clean
21
22config.status: configure
23        @if test -f ./config.status ; then      \
24                set -x ;                                                \
25                ./config.status --recheck ;             \
26        else                                                            \
27                set -x ;                                                \
28                echo "Source tree not configured. Use ./configure" ; \
29        fi
30
31
32include Mk/macports.upgrade.mk
33
34install:: upgrade
35        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 setupenv.sh  ${datadir}/macports/
36        [ ! -f ${sysconfdir}/macports/mp_version ] || rm -vf ${sysconfdir}/macports/mp_version
37
38include Mk/macports.subdir.mk
39
40install::
41        @echo ""; echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, run:"; echo ""
42        @echo "sudo port -v selfupdate"; echo ""
43        @echo "Please read \"man port\", the MacPorts guide at http://guide.macports.org/ and Wiki at http://trac.macports.org/ for full documentation."; echo ""
44        @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 ""
45
46clean::
47
48distclean::
49        rm -f config.log config.status configure.lineno
50        rm -rf autom4te.cache ${DISTDIR}
51        rm -f Makefile Mk/macports.autoconf.mk portmgr/fedora/macports.spec portmgr/freebsd/Makefile
52        rm -f Doxyfile
53
54_gettag:
55        cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}-svn
56
57_pkgdist:
58        [ ! -d ${DISTDIR}/${PKGNAME} ] || rm -rf ${DISTDIR}/${PKGNAME}
59        cd ${DISTDIR}; svn export ${PKGNAME}-svn ${PKGNAME}
60        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | gzip > ${PKGNAME}.tar.gz
61        cd ${DISTDIR}; COPY_EXTENDED_ATTRIBUTES_DISABLE=true tar -c ${PKGNAME} | bzip2 > ${PKGNAME}.tar.bz2
62        cd ${DISTDIR}; for tarball in ${PKGNAME}.tar.*; do { \
63                for type in -md5 -sha1 -ripemd160; do { \
64                        openssl dgst $$type $$tarball; \
65                }; done >> ${DISTNAME}.chk.txt; \
66        }; done
67
68_dopkg: _gettag _pkgdist
69
70# This target fetches a tagged distribution from svn, and generates tarballs and checksums for it
71distfromsvn:
72        @[ -n "${DISTVER}" ] || { echo Must specify DISTVER, like: make DISTVER=1.4.0 distfromsvn; exit 1; }
73        [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
74        rm -f ${DISTDIR}/${DISTNAME}.chk.txt
75        ${MAKE} SVNTAG=${DISTTAG}/base/ PKGNAME=${DISTNAME} _dopkg
76ifeq ($(ARC),yes)
77        ${MAKE} SVNTAG=${DISTARCTAG} PKGNAME=${DISTARCNAME} _dopkg
78endif
79
80tcldoc:
81        find src -name '*.tcl' | xargs tcldoc --verbose --title "MacPorts Documentation" --force tcldoc
82
83tcldox:
84        doxygen
85
86test::
87
88.PHONY: dist _gettag _pkgdist _dopkg tcldoc tcldox
Note: See TracBrowser for help on using the repository browser.