source: trunk/base/Mk/macports.tea.mk @ 51377

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

base:
Replace pkg_mkindex.tcl with a shell script which greps for errors. The Tcl
builtin proc pkg_mkIndex does not offer any way to detect them.

Such errors occur on syntax errors in Tcl files. Therefore these files would
not be added to the index. Later execution would fail with error messages which
do not necessarily indicate the problem.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 601 bytes
Line 
1# $Id: macports.tea.mk 51377 2009-05-23 18:44:07Z raimue@macports.org $
2
3.SUFFIXES: .m
4
5.m.o:
6        ${CC} -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED ${OBJCFLAGS} ${SHLIB_CFLAGS} $< -o $@
7
8.c.o:
9        ${CC} -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED ${CFLAGS} ${SHLIB_CFLAGS} $< -o $@
10
11$(SHLIB_NAME):: ${OBJS}
12        ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_STUB_LIB_SPEC} ${SHLIB_LDFLAGS} ${LIBS}
13
14all:: ${SHLIB_NAME}
15
16clean::
17        rm -f ${OBJS} ${SHLIB_NAME} so_locations
18
19distclean:: clean
20
21install:: all
22        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
23        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 ${SHLIB_NAME} ${INSTALLDIR}
24        $(SILENT) ../pkg_mkindex.sh ${INSTALLDIR}
Note: See TracBrowser for help on using the repository browser.