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