generate spinit and tclspinit at `make' time
This commit is contained in:
parent
4755e416e3
commit
69031273fb
|
|
@ -1,3 +1,12 @@
|
|||
2011-12-29 Robert Larice
|
||||
* configure.ac ,
|
||||
* src/Makefile.am ,
|
||||
* src/spinit.in ,
|
||||
* src/tclspinit.in :
|
||||
generate spinit and tclspinit at `make' time
|
||||
to obey (info "(autoconf) Installation Directory Variables")
|
||||
and edit them for codemodels in $(pkglibdir)
|
||||
|
||||
2011-12-29 Robert Larice
|
||||
* src/xspice/icm/GNUmakefile.in ,
|
||||
* src/xspice/icm/makedefs.in :
|
||||
|
|
|
|||
|
|
@ -1008,8 +1008,6 @@ AC_CONFIG_FILES([Makefile
|
|||
man/Makefile
|
||||
man/man1/Makefile
|
||||
src/Makefile
|
||||
src/spinit
|
||||
src/tclspinit
|
||||
src/spicelib/Makefile
|
||||
src/spicelib/analysis/Makefile
|
||||
src/spicelib/devices/Makefile
|
||||
|
|
|
|||
|
|
@ -280,6 +280,23 @@ ngspice.idx: ngmakeidx$(EXEEXT) $(srcdir)/ngspice.txt
|
|||
endif !WINDOWS
|
||||
|
||||
|
||||
## create spinit at compile time, see
|
||||
## (info "(autoconf) Installation Directory Variables")
|
||||
|
||||
edit = sed \
|
||||
-e 's|@XSPICEINIT[@]|$(XSPICEINIT)|g' \
|
||||
-e 's|@pkglibdir[@]|$(pkglibdir)|g'
|
||||
|
||||
spinit tclspinit : Makefile
|
||||
rm -f $@ $@.tmp
|
||||
srcdir=''; \
|
||||
test -f ./$@.in || srcdir=$(srcdir)/; \
|
||||
$(edit) $${srcdir}$@.in >$@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
spinit: $(srcdir)/spinit.in
|
||||
tclspinit: $(srcdir)/tclspinit.in
|
||||
|
||||
|
||||
## General Includes and libraries:
|
||||
|
||||
|
|
@ -422,8 +439,8 @@ install-tcl-recursive:
|
|||
done;
|
||||
|
||||
install-tclspice:
|
||||
$(mkinstalldirs) $(DESTDIR)$(libdir)/spice
|
||||
$(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(libdir)/spice
|
||||
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
|
||||
$(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)
|
||||
|
||||
endif TCL_MODULE
|
||||
|
||||
|
|
|
|||
|
|
@ -21,13 +21,13 @@ if $__flag = 0
|
|||
* For SPICE2 POLYs, edit the below line to point to the location
|
||||
* of your codemodel.
|
||||
|
||||
@XSPICEINIT@ codemodel @prefix@/@libname@/spice/spice2poly.cm
|
||||
@XSPICEINIT@ codemodel @pkglibdir@/spice2poly.cm
|
||||
|
||||
* The other codemodels
|
||||
@XSPICEINIT@ codemodel @prefix@/@libname@/spice/analog.cm
|
||||
@XSPICEINIT@ codemodel @prefix@/@libname@/spice/digital.cm
|
||||
@XSPICEINIT@ codemodel @prefix@/@libname@/spice/xtradev.cm
|
||||
@XSPICEINIT@ codemodel @prefix@/@libname@/spice/xtraevt.cm
|
||||
@XSPICEINIT@ codemodel @pkglibdir@/analog.cm
|
||||
@XSPICEINIT@ codemodel @pkglibdir@/digital.cm
|
||||
@XSPICEINIT@ codemodel @pkglibdir@/xtradev.cm
|
||||
@XSPICEINIT@ codemodel @pkglibdir@/xtraevt.cm
|
||||
|
||||
end
|
||||
unset __flag
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@ if $__flag = 0
|
|||
|
||||
* For SPICE2 POLYs, edit the below line to point to the location
|
||||
* of your codemode.
|
||||
@XSPICEINIT@ codemodel @libdir@/spice/spice2poly.cm
|
||||
@XSPICEINIT@ codemodel @pkglibdir@/spice2poly.cm
|
||||
|
||||
* The other codemodels
|
||||
@XSPICEINIT@ codemodel @libdir@/spice/analog.cm
|
||||
@XSPICEINIT@ codemodel @libdir@/spice/digital.cm
|
||||
@XSPICEINIT@ codemodel @libdir@/spice/xtradev.cm
|
||||
@XSPICEINIT@ codemodel @libdir@/spice/xtraevt.cm
|
||||
@XSPICEINIT@ codemodel @pkglibdir@/analog.cm
|
||||
@XSPICEINIT@ codemodel @pkglibdir@/digital.cm
|
||||
@XSPICEINIT@ codemodel @pkglibdir@/xtradev.cm
|
||||
@XSPICEINIT@ codemodel @pkglibdir@/xtraevt.cm
|
||||
|
||||
end
|
||||
unset __flag
|
||||
|
|
|
|||
Loading…
Reference in New Issue