source: trunk/base/Makefile.in @ 53634

Last change on this file since 53634 was 53634, checked in by snc@…, 11 years ago

suggest the user create a new terminal after installation to pick up changes to PATH, ticket #20218

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# $Id: Makefile.in 53634 2009-07-10 19:59:53Z snc@macports.org $
2
3PATH            = @PATH_CLEANED@
4SUBDIR          = doc src
5DISTDIR         = dist
6DISTVER         =
7DISTTAG         = release_${subst .,_,${DISTVER}}
8DISTNAME        = MacPorts-${DISTVER}
9DISTARCTAG      = ${DISTTAG}-archive
10DISTARCNAME     = ${DISTNAME}-archive
11SVNURL          = http://svn.macports.org/repository/macports
12
13
14include Mk/macports.autoconf.mk
15
16
17all:: Mk/macports.autoconf.mk
18
19Mk/macports.autoconf.mk: Mk/macports.autoconf.mk.in src/config.h.in Makefile.in config.status
20        ./config.status
21        make clean
22
23config.status: configure
24        @if test -f ./config.status ; then      \
25                set -x ;                                                \
26                ./config.status --recheck ;             \
27        else                                                            \
28                set -x ;                                                \
29                echo "Source tree not configured. Use ./configure" ; \
30        fi
31
32include Mk/macports.subdir.mk
33
34install::
35        [ ! -f ${sysconfdir}/macports/mp_version ] || rm -vf ${sysconfdir}/macports/mp_version
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),)
39# Add [default] tag to the central MacPorts repository, if it isn't already
40        $(TCLSH) src/upgrade_sources_conf_default.tcl ${prefix}
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}
43endif
44        @echo ""; echo "Congratulations, you have successfully installed the MacPorts system. To get the Portfiles and update the system, open a new terminal and run:"; echo ""
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 ""
47        @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 ""
48
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
56clean::
57
58distclean::
59        rm -f config.log config.status configure.lineno
60        rm -rf autom4te.cache ${DISTDIR}
61        rm -f Makefile Mk/macports.autoconf.mk portmgr/fedora/macports.spec portmgr/freebsd/Makefile
62        rm -f Doxyfile
63        rm -f setupenv.bash
64
65_gettag:
66        cd ${DISTDIR}; svn co ${SVNURL}/tags/${SVNTAG} ${PKGNAME}-svn
67
68_pkgdist:
69        [ ! -d ${DISTDIR}/${PKGNAME} ] || rm -rf ${DISTDIR}/${PKGNAME}
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
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
78
79_dopkg: _gettag _pkgdist
80
81# This target fetches a tagged distribution from svn, and generates tarballs and checksums for it
82distfromsvn:
83        @[ -n "${DISTVER}" ] || { echo Must specify DISTVER, like: make DISTVER=1.4.0 distfromsvn; exit 1; }
84        [ -d ${DISTDIR} ] || mkdir ${DISTDIR}
85        rm -f ${DISTDIR}/${DISTNAME}.chk.txt
86        ${MAKE} SVNTAG=${DISTTAG}/base/ PKGNAME=${DISTNAME} _dopkg
87ifeq ($(ARC),yes)
88        ${MAKE} SVNTAG=${DISTARCTAG} PKGNAME=${DISTARCNAME} _dopkg
89endif
90
91tcldoc:
92        find src -name '*.tcl' | xargs tcldoc --verbose --title "MacPorts Documentation" --force tcldoc
93
94tcldox:
95        doxygen
96
97test::
98
99.PHONY: dist _gettag _pkgdist _dopkg tcldoc tcldox
Note: See TracBrowser for help on using the repository browser.