-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.am
201 lines (172 loc) · 3.77 KB
/
Makefile.am
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
bin_PROGRAMS = advscan advdiff
advdiff_SOURCES = \
diff.cc \
rom.cc \
disk.cc \
sample.cc \
data.cc \
strcov.c \
file.cc \
ziprom.cc \
game.cc \
gameinfo.cc \
gamexml.cc \
zip.cc \
siglock.cc \
getopt.c \
snprintf.c \
lib/readinfo.c \
expat/xmlrole.c \
expat/xmlparse.c \
expat/xmltok.c
advscan_SOURCES = \
scan.cc \
rom.cc \
disk.cc \
sample.cc \
conf.cc \
data.cc \
token.cc \
strcov.c \
file.cc \
ziprom.cc \
game.cc \
gameinfo.cc \
gamexml.cc \
zip.cc \
output.cc \
analyze.cc \
siglock.cc \
getopt.c \
snprintf.c \
lib/readinfo.c \
expat/xmlrole.c \
expat/xmlparse.c \
expat/xmltok.c
EXTRA_DIST = advscan.rc.linux advscan.rc.dos \
README AUTHORS HISTORY INSTALL COPYING \
doc/advscan.d doc/advdiff.d doc/history.d doc/readme.d doc/authors.d doc/install.d \
doc/advscan.1 doc/advdiff.1 doc/history.1 doc/readme.1 doc/authors.1 doc/install.1 \
doc/advscan.txt doc/advdiff.txt doc/history.txt doc/readme.txt doc/authors.txt doc/install.txt \
autogen.sh \
test/test.xml \
test/test.lst \
test/testd.xml \
test/testd.lst
noinst_HEADERS = \
snprintf.c \
rom.h \
sample.h \
disk.h \
data.h \
token.h \
strcov.h \
file.h \
conf.h \
ziprom.h \
game.h \
zip.h \
except.h \
output.h \
operatio.h \
analyze.h \
analyze.dat \
siglock.h \
portable.h \
lib/readinfo.h \
lib/endianrw.h \
lib/extra.h \
expat/COPYING \
expat/README \
expat/ascii.h \
expat/asciitab.h \
expat/expat-1.95.8.diff \
expat/expat.h \
expat/iasciitab.h \
expat/expatcfg.h \
expat/expat_external.h \
expat/internal.h \
expat/latin1tab.h \
expat/nametab.h \
expat/utf8tab.h \
expat/xmlparse.c \
expat/xmlrole.c \
expat/xmlrole.h \
expat/xmltok.c \
expat/xmltok.h \
expat/xmltok_impl.c \
expat/xmltok_impl.h \
expat/xmltok_ns.c
man_MANS = doc/advscan.1 doc/advdiff.1
clean-local:
rm -f advscan.exe advscan.rc advdiff.exe
rm -f check.lst checkd.lst
maintainer-clean-local:
rm -f README AUTHORS HISTORY INSTALL doc/copying.txt
rm -f doc/*.hh
check-local:
rm -f check.lst checkd.lst
./advscan -e < $(srcdir)/test/test.xml > check.lst
cmp check.lst $(srcdir)/test/test.lst
./advdiff $(srcdir)/test/test.xml $(srcdir)/test/testd.xml > checkd.lst
cmp checkd.lst $(srcdir)/test/testd.lst
echo Success!
# Rules for documentation
if HAVE_ADVD2
%.1 : %.d
advd2 man < $(srcdir)/$< > $@
%.txt : %.d
advd2 txt < $(srcdir)/$< | todos > $@
%.html : %.d
advd2 html < $(srcdir)/$< > $@
%.hh : %.d
advd2 frame < $(srcdir)/$< > $@
endif
# Archives
DTOU = tr -d '\015'
advscan.rc: advscan.rc.dos
cp $(srcdir)/advscan.rc.dos advscan.rc
README: doc/readme.txt
cat $< | $(DTOU) > $@
AUTHORS: doc/authors.txt
cat $< | $(DTOU) > $@
INSTALL: doc/install.txt
cat $< | $(DTOU) > $@
HISTORY: doc/history.txt
cat $< | $(DTOU) > $@
doc/copying.txt: COPYING
cat $< | todos > $@
DISTDOS_ROOT = \
doc/readme.txt doc/authors.txt doc/history.txt doc/copying.txt \
advscan.exe advdiff.exe \
advscan.rc
DISTDOS_DOC = \
doc/advscan.txt doc/advdiff.txt \
doc/readme.txt doc/authors.txt doc/history.txt
distdos: $(DISTDOS_ROOT) $(DISTDOS_DOC)
rm -f $(PACKAGE)-$(VERSION)-dos-x86.zip
mkdir tmp
cp $(DISTDOS_ROOT) tmp
mkdir tmp/doc
cp $(DISTDOS_DOC) tmp/doc
cd tmp && zip -r ../$(PACKAGE)-$(VERSION)-dos-x86.zip *
rm -r tmp
distwindows-x86: $(DISTDOS_ROOT) $(DISTDOS_DOC)
rm -f $(PACKAGE)-$(VERSION)-windows-x86.zip
mkdir tmp
cp $(DISTDOS_ROOT) tmp
mkdir tmp/doc
cp $(DISTDOS_DOC) tmp/doc
cd tmp && zip -r ../$(PACKAGE)-$(VERSION)-windows-x86.zip *
rm -r tmp
distwindows-x64: $(DISTDOS_ROOT) $(DISTDOS_DOC)
rm -f $(PACKAGE)-$(VERSION)-windows-x64.zip
mkdir tmp
cp $(DISTDOS_ROOT) tmp
mkdir tmp/doc
cp $(DISTDOS_DOC) tmp/doc
cd tmp && zip -r ../$(PACKAGE)-$(VERSION)-windows-x64.zip *
rm -r tmp
DISTWEB = \
doc/advscan.hh doc/advdiff.hh doc/history.hh
web: $(DISTWEB)