-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.in
More file actions
217 lines (177 loc) · 6.17 KB
/
Makefile.in
File metadata and controls
217 lines (177 loc) · 6.17 KB
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
#*****************************************************************************
# DESCRIPTION: voneline: Makefile pre-configure version
#
# Author: Wilson Snyder <wsnyder@wsnyder.org>
#
# Code available from: http://www.veripool.org/voneline
#
#*****************************************************************************
#
# Copyright 1998-2019 by Wilson Snyder. This program is free software; you can
# redistribute it and/or modify it under the terms of either the GNU
# General Public License or the Perl Artistic License.
#
# voneline is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#****************************************************************************/
#
# make all to compile and build.
# make install to install it.
# make TAGS to update tags tables.
#
# make clean or make mostlyclean
# Delete all files from the current directory that are normally
# created by building the program. Don't delete the files that
# record the configuration. Also preserve files that could be made
# by building, but normally aren't because the distribution comes
# with them.
#
# make distclean
# Delete all files from the current directory that are created by
# configuring or building the program. If you have unpacked the
# source and built the program without creating any other files,
# `make distclean' should leave only the files that were in the
# distribution.
#
# make maintainer-clean
# Delete everything from the current directory that can be
# reconstructed with this Makefile. This typically includes
# everything deleted by distclean, plus more: C source files
# produced by Bison, tags tables, info files, and so on.
#
# make extraclean
# Still more severe - delete backup and autosave files, too.
#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
CC = @CC@
#### Don't edit: You're much better using configure switches to set these
prefix = @prefix@
exec_prefix = @exec_prefix@
# Directory in which to install scripts.
bindir = @bindir@
# Directory in which to install library files.
datadir = @datadir@
# Directory in which to install documentation info files.
infodir = @infodir@
# Where to install man pages, and what extension they should have.
mandir= ${prefix}/man
man1dir=$(mandir)/man1
# Version of program
VERSION = @VERSION@
#### End of system configuration section. ####
######################################################################
default: all
SHELL = /bin/sh
INFOS =
MANS = voneline.1
SUBDIRS = src
#INFOS = voneline.info INSTALL voneline.txt
# Files that can be generated, but should be up to date for a distribution.
DISTDEP = $(INFOS) $(MANS) Makefile
# Files to distribute.
DISTFILES = $(INFOS) COPYING configure *.in \
install-sh mkinstalldirs *.texi \
src/*.in src/*.l \
*.pod \
$(DISTBIN) $(MANS)
INSTALL_PROGS = src/voneline
PROGS = $(INSTALL_PROGS)
info: $(INFOS)
dvi: voneline.dvi
voneline.dvi: voneline.texi
$(TEXI2DVI) $(srcdir)/voneline.texi
installdirs:
$(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir)
install: all $(MANS) #info installdirs install-info
for p in src/voneline; do \
$(INSTALL_PROGRAM) $$p $(bindir)/$p; \
done
for p in $(MANS); do \
$(INSTALL_PROGRAM) $$p $(man1dir)/$p; \
done
%.1: %.pod
pod2man --center "Veripool Tools" --release $(VERSION) $< > $@
%.html: %.pod
pod2html --noindex --noheader $< > $@
# autoheader might not change config.h.in, so touch a stamp file.
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in Makefile.in ${srcdir}/Makefile.in ${srcdir}/config.h.in
cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
Makefile: Makefile.in config.status
./config.status
src/Makefile: src/Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck
configure: configure.in
autoconf
maintainer-clean::
@echo "This command is intended for maintainers to use;"
@echo "rebuilding the deleted files requires makeinfo."
rm -f *.info* $(INFOS) configure bin/*
test all clean mostlyclean distclean maintainer-clean maintainer-copy::
for dir in $(SUBDIRS); do \
echo making $@ in $$dir ; \
(cd $$dir && $(MAKE) $@) ; \
done
clean mostlyclean distclean maintainer-clean::
rm -f $(SCRIPTS) *.tmp
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
rm -f *.ev *.evs *.ov *.ovs *.cv *.cvs *.ma *.mas
rm -rf obj_dir
rm -rf *.html pod2htm*
rm -rf autom4te.cache
distclean maintainer-clean::
rm -f Makefile config.status config.cache config.log voneline TAGS
maintainer-clean::
rm -f README $(MANS)
TAGFILES=${srcdir}/src/*.c ${srcdir}/src/*.h ${srcdir}/src/[a-z]*.in \
${srcdir}/[a-z]*.in ${srcdir}/*.texi
TAGS: $(TAGFILES)
etags $(TAGFILES)
######################################################################
# Distributions
DISTNAME := voneline-$(VERSION)
DISTTAGNAME := $(subst .,_,$(subst -,_,$(DISTNAME)))
tag:
svnorcvs tag $(DISTTAGNAME)
# Don't depend on DISTFILES because there's no rule for "standards.info*".
dist: $(DISTDEP)
rm -fr $(DISTNAME); \
mkdir $(DISTNAME) $(DISTNAME)/src; \
for file in $(DISTFILES); do \
ln $$file $(DISTNAME)/$$file \
|| { echo copying $$file instead; cp -p $$file $(DISTNAME)/$$file;}; \
done; \
chmod -R a+r $(DISTNAME); \
tar chf $(DISTNAME).tar $(DISTNAME); \
gzip --force --best $(DISTNAME).tar; \
mv $(DISTNAME).tar.gz $(DISTNAME).tgz; \
rm -fr $(DISTNAME)
preexist:
svnorcvs nexists $(DISTTAGNAME)
maintainer-dist: preexist dist tag
svnorcvs release $(DISTNAME).tgz
######################################################################
obj_dir:
mkdir -p $@
test:: obj_dir
src/voneline < t/test001.v > obj_dir/test.out
diff -c t/test001.out obj_dir/test.out
src/voneline --no-comments < t/test002.v > obj_dir/test.out
diff -c t/test002.out obj_dir/test.out
@echo Tests Passed