source: branches/gsoc13-tests/src/package1.0/Makefile @ 139170

Last change on this file since 139170 was 111306, checked in by marius@…, 7 years ago

package1.0: added ports tree update before running tests from makefile target

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 745 bytes
Line 
1INSTALLDIR=     ${DESTDIR}${datadir}/macports/Tcl/package1.0
2
3SRCS=   package.tcl portdmg.tcl portmdmg.tcl portmpkg.tcl portpkg.tcl \
4        portrpm.tcl portsrpm.tcl portdpkg.tcl portunarchive.tcl \
5        portarchivefetch.tcl
6
7include ../../Mk/macports.autoconf.mk
8
9all:: pkgIndex.tcl
10
11pkgIndex.tcl: $(SRCS)
12        $(SILENT) ../pkg_mkindex.sh .
13
14clean::
15        rm -f pkgIndex.tcl
16
17distclean:: clean
18
19test::
20ifeq ($(shell id -u),0)
21        $(prefix)/bin/port sync
22endif
23        $(TCLSH) ./tests/test.tcl -nocolor
24
25install:: all
26        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
27        $(SILENT)set -x; for file in ${SRCS}; do \
28                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
29        done
30        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 pkgIndex.tcl ${INSTALLDIR}
Note: See TracBrowser for help on using the repository browser.