source: trunk/base/src/registry2.0/Makefile.in @ 118565

Last change on this file since 118565 was 118565, checked in by cal@…, 5 years ago

base: Remove deletion from registry2.0 that will now be done in macports1.0 anyway

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Makefile.in 118565 2014-04-04 23:05:59Z cal@macports.org $
2
3srcdir = @srcdir@
4VPATH  = @srcdir@
5
6include ../../Mk/macports.autoconf.mk
7
8SRCS_AUTOCONF = registry_autoconf.tcl
9SRCS = registry.tcl registry_util.tcl receipt_flat.tcl receipt_sqlite.tcl portimage.tcl portuninstall.tcl
10OBJS = registry.o util.o \
11        entry.o entryobj.o \
12        file.o fileobj.o \
13        portgroup.o portgroupobj.o
14        #graph.o graphobj.o
15
16SHLIB_NAME= registry${SHLIB_SUFFIX}
17INSTALLDIR= ${DESTDIR}${TCL_PACKAGE_PATH}/registry2.0
18
19include $(srcdir)/../../Mk/macports.tea.mk
20
21pkgIndex.tcl: $(SRCS) $(SRCS_AUTOCONF)
22
23CFLAGS+=        ${SQLITE3_CFLAGS}
24LIBS+=  ${SQLITE3_LIBS} ../cregistry/cregistry.a
25ifeq ($(shell uname), Darwin)
26SHLIB_LDFLAGS+= -install_name @loader_path/../registry2.0/${SHLIB_NAME}
27endif
28
29${SHLIB_NAME}: ../cregistry/cregistry.a
30
31.PHONY: test
32
33test:: ${SHLIB_NAME}
34        ${TCLSH} $(srcdir)/tests/entry.tcl ./${SHLIB_NAME}
35        ${TCLSH} $(srcdir)/tests/depends.tcl ./${SHLIB_NAME}
36
37distclean:: clean
38        rm -f registry_autoconf.tcl
39        rm -f Makefile
40
41install:: all $(SHLIB_NAME)
42        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
43        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 ${SHLIB_NAME} ${INSTALLDIR}
44        $(SILENT) set -x; for file in ${SRCS}; do \
45                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $(srcdir)/$$file ${INSTALLDIR}/$$file; \
46        done
47        $(SILENT) set -x; for file in ${SRCS_AUTOCONF}; do \
48                $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}/$$file; \
49        done
50        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 pkgIndex.tcl ${INSTALLDIR}
Note: See TracBrowser for help on using the repository browser.