cleanup src/Makefile.am
This commit is contained in:
parent
1fdee871b1
commit
0d5e569aca
|
|
@ -1,3 +1,11 @@
|
||||||
|
2011-12-29 Robert Larice
|
||||||
|
* src/Makefile.am :
|
||||||
|
cleanup src/Makefile.am
|
||||||
|
TCL_MODULE rules
|
||||||
|
CLEANFILES
|
||||||
|
edit pkgIndex.tcl at `make' time
|
||||||
|
to obey (info "(autoconf) Installation Directory Variables")
|
||||||
|
|
||||||
2011-12-29 Robert Larice
|
2011-12-29 Robert Larice
|
||||||
* configure.ac :
|
* configure.ac :
|
||||||
remove @libname@
|
remove @libname@
|
||||||
|
|
|
||||||
|
|
@ -308,15 +308,17 @@ if WINDOWS
|
||||||
LIBS += -lpsapi
|
LIBS += -lpsapi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
MAINTAINERCLEANFILES = Makefile.in ngspice.idx
|
CLEANFILES = ngspice.idx spinit tclspinit pkgIndex.tcl
|
||||||
|
|
||||||
|
MAINTAINERCLEANFILES = Makefile.in
|
||||||
|
|
||||||
## Tcl:
|
## Tcl:
|
||||||
|
|
||||||
if TCL_MODULE
|
if TCL_MODULE
|
||||||
lib_LTLIBRARIES = libspice.la
|
lib_LTLIBRARIES = libspice.la
|
||||||
install: install-libLTLIBRARIES install-tcl-recursive install-tclspice install-data-am
|
|
||||||
EXTRA_DIST += tclspice.c
|
|
||||||
initdata_DATA += tclspinit
|
initdata_DATA += tclspinit
|
||||||
|
pkgIndex_DATA = pkgIndex.tcl
|
||||||
|
pkgIndexdir = $(pkglibdir)
|
||||||
|
|
||||||
if TCLWIN
|
if TCLWIN
|
||||||
LIBS += -lpsapi -ltcl84 -lBLT24
|
LIBS += -lpsapi -ltcl84 -lBLT24
|
||||||
|
|
@ -416,31 +418,21 @@ libspice_la_LDFLAGS += -no-undefined
|
||||||
libspice_la_LDFLAGS += --def spice.def @TCL_LIB_SPEC@
|
libspice_la_LDFLAGS += --def spice.def @TCL_LIB_SPEC@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CLEANFILES = pkgIndex.tcl libspice.so
|
|
||||||
|
|
||||||
TCL_PKG_PATH = @TCL_PACKAGE_PATH@
|
|
||||||
|
|
||||||
TCLSPICE_VERSION = @VERSION@
|
TCLSPICE_VERSION = @VERSION@
|
||||||
|
|
||||||
TCL_FILES = libspice.la pkgIndex.tcl
|
pkgIndex_edit = sed \
|
||||||
|
-e 's|%LIB_DIR%|$(libdir)|g' \
|
||||||
|
-e 's|%VERSION%|$(TCLSPICE_VERSION)|g'
|
||||||
|
|
||||||
pkgIndex.tcl: pkgIndex.tcl.in
|
pkgIndex.tcl : Makefile
|
||||||
rm -f $@
|
rm -f $@ $@.tmp
|
||||||
sed -e 's;%LIB_DIR%;$(DESTDIR)$(libdir);g' $< | \
|
srcdir=''; \
|
||||||
sed -e 's;%VERSION%;$(TCLSPICE_VERSION);g' > $@
|
test -f ./$@.in || srcdir=$(srcdir)/; \
|
||||||
|
$(pkgIndex_edit) $${srcdir}$@.in >$@.tmp
|
||||||
|
mv $@.tmp $@
|
||||||
|
|
||||||
all: $(TCL_FILES)
|
pkgIndex.tcl: $(srcdir)/pkgIndex.tcl.in
|
||||||
|
|
||||||
install-tcl-recursive:
|
|
||||||
list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
||||||
echo "Making $$target in $$subdir"; \
|
|
||||||
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) install) \
|
|
||||||
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
|
||||||
done;
|
|
||||||
|
|
||||||
install-tclspice:
|
|
||||||
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
|
||||||
$(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)
|
|
||||||
|
|
||||||
endif TCL_MODULE
|
endif TCL_MODULE
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue