source: trunk/base/src/package1.0/Makefile.in @ 141366

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

Unify test.tcl files into a single script at src/tests/test.tcl

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