-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
223 lines (189 loc) · 9.46 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
# Makefile.in --
#
# This file is a Makefile for Sample TEA Extension. If it has the name
# "Makefile.in" then it is a template for a Makefile; to generate the
# actual Makefile, run "./configure", which is a configuration script
# generated by the "autoconf" program (constructs like "@foo@" will get
# replaced in the actual Makefile.
#
# Copyright (c) 1999 Scriptics Corporation.
# Copyright (c) 2002-2005 ActiveState Corporation.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
PKG_TCL_SOURCES = @PKG_TCL_SOURCES@
SHELL = @SHELL@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
includedir = @includedir@
datarootdir = @datarootdir@
runstatedir = @runstatedir@
datadir = @datadir@
mandir = @mandir@
DESTDIR =
PKG_DIR = $(PACKAGE_NAME)$(PACKAGE_VERSION)
pkgdatadir = $(datadir)/$(PKG_DIR)
pkglibdir = $(libdir)/$(PKG_DIR)
pkgincludedir = $(includedir)/$(PKG_DIR)
top_builddir = @abs_top_builddir@
INSTALL_OPTIONS =
INSTALL = @INSTALL@ $(INSTALL_OPTIONS)
INSTALL_DATA_DIR = @INSTALL_DATA_DIR@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_LIBRARY = @INSTALL_LIBRARY@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
#TCL_DEFS = @TCL_DEFS@
TCL_BIN_DIR = @TCL_BIN_DIR@
TCL_SRC_DIR = @TCL_SRC_DIR@
#TK_BIN_DIR = @TK_BIN_DIR@
#TK_SRC_DIR = @TK_SRC_DIR@
EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR)
TCLLIBPATH = @TCLLIBPATH@
TCLSH_ENV = TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library`
PKG_ENV = PATH="$(EXTRA_PATH):$(PATH)" TCLLIBPATH="$(TCLLIBPATH)"
TCLSH_PROG = @TCLSH_PROG@
TCLSH = $(PKG_ENV) $(TCLSH_PROG)
#WISH_ENV = TK_LIBRARY=`@CYGPATH@ $(TK_SRC_DIR)/library`
#WISH_PROG = @WISH_PROG@
#WISH = $(TCLSH_ENV) $(WISH_ENV) $(PKG_ENV) $(WISH_PROG)
# Move pkgIndex.tcl to 'BINARIES' var if it is generated in the Makefile
CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl
CLEANFILES = @CLEANFILES@
all: libraries
binaries: $(BINARIES)
libraries:
doc:
$(TCLSH) $(srcdir)/docs/doc_gen.tcl
install: all install-libraries install-doc
install-libraries:
@mkdir -p $(DESTDIR)$(pkglibdir)
@list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
if test -f $(srcdir)/$$p; then \
destp=`basename $$p`; \
echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \
fi; \
done
@echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \
$(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir);
$(INSTALL_DATA_DIR) "$(DESTDIR)$(pkglibdir)/src" "$(DESTDIR)$(pkglibdir)/src/ngspice" "$(DESTDIR)$(pkglibdir)/src/xyce" "$(DESTDIR)$(pkglibdir)/src/ltspice" "$(DESTDIR)$(pkglibdir)/lib" "$(DESTDIR)$(pkglibdir)/lib/argparse"
@echo " Install $(srcdir)/lib/argparse/argparse.tcl $(DESTDIR)$(pkglibdir)/lib/argparse"; \
$(INSTALL_DATA) $(srcdir)/lib/argparse/argparse.tcl $(DESTDIR)$(pkglibdir)/lib/argparse;
@echo " Install $(srcdir)/lib/argparse/pkgIndex.tcl $(DESTDIR)$(pkglibdir)/lib/argparse"; \
$(INSTALL_DATA) $(srcdir)/lib/argparse/pkgIndex.tcl $(DESTDIR)$(pkglibdir)/lib/argparse;
@echo " Install $(srcdir)/src/generalClasses.tcl $(DESTDIR)$(pkglibdir)/src"; \
$(INSTALL_DATA) $(srcdir)/src/generalClasses.tcl $(DESTDIR)$(pkglibdir)/src;
@echo " Install $(srcdir)/src/specElementsClassesCommon.tcl $(DESTDIR)$(pkglibdir)/src"; \
$(INSTALL_DATA) $(srcdir)/src/specElementsClassesCommon.tcl $(DESTDIR)$(pkglibdir)/src;
@echo " Install $(srcdir)/src/specAnalysesClassesCommon.tcl $(DESTDIR)$(pkglibdir)/src"; \
$(INSTALL_DATA) $(srcdir)/src/specAnalysesClassesCommon.tcl $(DESTDIR)$(pkglibdir)/src;
@echo " Install $(srcdir)/src/ngspice/specAnalysesClassesNgspice.tcl $(DESTDIR)$(pkglibdir)/src/ngspice"; \
$(INSTALL_DATA) $(srcdir)/src/ngspice/specAnalysesClassesNgspice.tcl $(DESTDIR)$(pkglibdir)/src/ngspice;
@echo " Install $(srcdir)/src/ngspice/specElementsClassesNgspice.tcl $(DESTDIR)$(pkglibdir)/src/ngspice"; \
$(INSTALL_DATA) $(srcdir)/src/ngspice/specElementsClassesNgspice.tcl $(DESTDIR)$(pkglibdir)/src/ngspice;
@echo " Install $(srcdir)/src/ngspice/specModelsClassesNgspice.tcl $(DESTDIR)$(pkglibdir)/src/ngspice"; \
$(INSTALL_DATA) $(srcdir)/src/ngspice/specModelsClassesNgspice.tcl $(DESTDIR)$(pkglibdir)/src/ngspice;
@echo " Install $(srcdir)/src/ngspice/specSimulatorClassesNgspice.tcl $(DESTDIR)$(pkglibdir)/src/ngspice"; \
$(INSTALL_DATA) $(srcdir)/src/ngspice/specSimulatorClassesNgspice.tcl $(DESTDIR)$(pkglibdir)/src/ngspice;
@echo " Install $(srcdir)/src/xyce/specAnalysesClassesXyce.tcl $(DESTDIR)$(pkglibdir)/src/xyce"; \
$(INSTALL_DATA) $(srcdir)/src/xyce/specAnalysesClassesXyce.tcl $(DESTDIR)$(pkglibdir)/src/xyce;
@echo " Install $(srcdir)/src/xyce/specElementsClassesXyce.tcl $(DESTDIR)$(pkglibdir)/src/xyce"; \
$(INSTALL_DATA) $(srcdir)/src/xyce/specElementsClassesXyce.tcl $(DESTDIR)$(pkglibdir)/src/xyce;
@echo " Install $(srcdir)/src/xyce/specModelsClassesXyce.tcl $(DESTDIR)$(pkglibdir)/src/xyce"; \
$(INSTALL_DATA) $(srcdir)/src/xyce/specModelsClassesXyce.tcl $(DESTDIR)$(pkglibdir)/src/xyce;
@echo " Install $(srcdir)/src/xyce/specSimulatorClassesXyce.tcl $(DESTDIR)$(pkglibdir)/src/xyce"; \
$(INSTALL_DATA) $(srcdir)/src/xyce/specSimulatorClassesXyce.tcl $(DESTDIR)$(pkglibdir)/src/xyce;
@echo " Install $(srcdir)/src/ltspice/specAnalysesClassesLtspice.tcl $(DESTDIR)$(pkglibdir)/src/ltspice"; \
$(INSTALL_DATA) $(srcdir)/src/ltspice/specAnalysesClassesLtspice.tcl $(DESTDIR)$(pkglibdir)/src/ltspice;
@echo " Install $(srcdir)/src/ltspice/specElementsClassesLtspice.tcl $(DESTDIR)$(pkglibdir)/src/ltspice"; \
$(INSTALL_DATA) $(srcdir)/src/ltspice/specElementsClassesLtspice.tcl $(DESTDIR)$(pkglibdir)/src/ltspice;
@echo " Install $(srcdir)/src/ltspice/specModelsClassesLtspice.tcl $(DESTDIR)$(pkglibdir)/src/ltspice"; \
$(INSTALL_DATA) $(srcdir)/src/ltspice/specModelsClassesLtspice.tcl $(DESTDIR)$(pkglibdir)/src/ltspice;
@echo " Install $(srcdir)/src/ltspice/specSimulatorClassesLtspice.tcl $(DESTDIR)$(pkglibdir)/src/ltspice"; \
$(INSTALL_DATA) $(srcdir)/src/ltspice/specSimulatorClassesLtspice.tcl $(DESTDIR)$(pkglibdir)/src/ltspice;
install-doc:
@$(INSTALL_DATA_DIR) "$(DESTDIR)$(mandir)/mann"
@echo "Installing documentation in $(DESTDIR)$(mandir)"
@list='$(srcdir)/docs/*.n'; for i in $$list; do \
echo "Installing $$i"; \
$(INSTALL_DATA) $$i "$(DESTDIR)$(mandir)/mann" ; \
done
@$(INSTALL_DATA_DIR) "$(DESTDIR)/usr/local/share/$(PACKAGE_NAME)$(PACKAGE_VERSION)/doc"
@echo "Installing html documentation in $(DESTDIR)/usr/local/share/$(PACKAGE_NAME)$(PACKAGE_VERSION)/doc"
@list='$(srcdir)/docs/*.html'; for i in $$list; do \
echo "Installing $$i"; \
$(INSTALL_DATA) $$i "$(DESTDIR)/usr/local/share/$(PACKAGE_NAME)$(PACKAGE_VERSION)/doc" ; \
done
echo "Installing $(srcdir)/docs/assets"; \
cp -r $(srcdir)/docs/assets "$(DESTDIR)/usr/local/share/$(PACKAGE_NAME)$(PACKAGE_VERSION)/doc";
test: libraries
$(TCLSH) `@CYGPATH@ $(srcdir)/test/all.tcl` $(TESTFLAGS)
shell: binaries libraries
@$(TCLSH) $(SCRIPT)
depend:
COMPRESS = tar zcvf $(PKG_DIR).tar.gz $(PKG_DIR)
COMPRESS_ZIP= zip -r $(PKG_DIR).zip $(PKG_DIR)
DIST_ROOT = /tmp/dist
DIST_DIR = $(DIST_ROOT)/$(PKG_DIR)
dist-clean:
rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.*;\
rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).zip
dist: dist-clean
mkdir -p $(DIST_DIR)
cp -p $(srcdir)/README.md $(DIST_DIR)/
cp -p $(srcdir)/changelog.txt $(DIST_DIR)/
cp -p $(srcdir)/LICENSE.txt $(DIST_DIR)/
for i in $(srcdir)/*.tcl; do \
if [ -f $$i ]; then \
cp -p $$i $(DIST_DIR)/ ; \
fi; \
done;
cp -r $(srcdir)/src $(DIST_DIR)
cp -r $(srcdir)/lib $(DIST_DIR)
mkdir -p $(DIST_DIR)/test
cp -p $(srcdir)/test/all.tcl $(DIST_DIR)/test/
cp -p $(srcdir)/test/generalClasses.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/readRawNgspice.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specAnalysesClassesNgspice.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specAnalysesClassesXyce.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specAnalysesClassesLtspice.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specElemsClassesCommon.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specElemsClassesNgspice.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specElemsClassesXyce.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specElemsClassesLtspice.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specModsClassesNgspice.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specModsClassesXyce.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specModsClassesLtspice.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specSimulatorClassesNgspice.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specSimulatorClassesXyce.test $(DIST_DIR)/test/
cp -p $(srcdir)/test/specSimulatorClassesLtspice.test $(DIST_DIR)/test/
cp -r $(srcdir)/test/raw_data_ngspice $(DIST_DIR)/test/
cp -r $(srcdir)/test/raw_data_ltspice $(DIST_DIR)/test/
cp -r $(srcdir)/examples $(DIST_DIR)
(cd $(DIST_ROOT); $(COMPRESS); $(COMPRESS_ZIP))
clean:
-test -z "$(BINARIES)" || rm -f $(BINARIES)
-rm -f *.$(OBJEXT) core *.core
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean: clean
-rm -f *.tab.c
-rm -f $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log config.status
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
uninstall-libraries:
list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
p=`basename $$p`; \
rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \
done
uninstall:
rm -rf "$(DESTDIR)$(pkglibdir)"
.PHONY: all clean depend distclean doc install libraries test
.NOEXPORT: