-
Notifications
You must be signed in to change notification settings - Fork 8
/
makefile
71 lines (54 loc) · 1.84 KB
/
makefile
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
define each-ml
for m in nj moscow mlton poly smlsharp; do $(MAKE) -f Makefile.$$m $@; done
endef
default:
all: docs
$(each-ml)
test:
$(each-ml)
DOCS := README LICENSE INSTALL doc/qcheck.info doc/html/qcheck.html
EXTRAS := doc/qcheck.pdf # don't include this with distribution
docs: $(DOCS)
DOCGEN = qcheck qcheck-ver sml-ver mosml QCHECK_SIG FILES_SIG \
APPLICATIVE_RNG GEN_TYPES PREGEN_SIG PRETEXT_GENERATOR \
INT_GENERATOR WORD_GENERATOR REAL_GENERATOR \
DATE_TIME_GENERATOR PROPERTY_SIG SETTINGS_SIG
DOCGENS := $(addprefix doc/, $(addsuffix .texi, $(DOCGEN)))
$(DOCS): $(DOCGENS) doc/copying.texi doc/changes.texi
%.texi: %.texin scripts/transcribe.pl
$(PERL) scripts/transcribe.pl $(SML) qcheck.cm <$< >$@
doc/%.texi: src/%.sml scripts/extract.pl
$(PERL) scripts/extract.pl $< >$@
doc/mosml.texi:
$(MAKE) -f Makefile.moscow $@
GETNODE=$(EMACS) --batch --no-site-file -l scripts/get-node.el --eval
LICENSE: doc/qcheck.info
$(GETNODE) '(get-node "./$<" "License" "../$@")'
INSTALL: doc/qcheck.info
$(GETNODE) '(get-node "./$<" "Installation" "../$@")'
README: doc/qcheck.info
$(GETNODE) '(get-node "./$<" "Overview" "../$@")'
%.pdf: %.texi $(DOCGENS)
$(TEXI2DVI) --batch --pdf -o $@ $<
doc/html:
mkdir $@
doc/html/qcheck.html: doc/html
cd $< && $(TEXI2HTML) -I ../.. -o . --css-include=../style.css ../qcheck.texi
sed -i 's/->/\→/g' $</*.html
sed -i 's/\-|/\›/g' $</*.html
DIST_BRANCH = trunk
DIST_REPO = comsci.liu.edu:public_html/dist/qcheck
mostlyclean: master.mostlyclean
$(each-ml)
clean: master.clean
$(each-ml)
realclean: master.realclean
$(each-ml)
master.mostlyclean:
$(RM) compat/*/*~ tests/data/*~ doc/*~ *~
master.clean: master.mostlyclean
$(RM) $(DOCGENS) $(EXTRAS)
master.realclean: master.clean
$(RM) $(VERSION_SRC)
$(RM) doc/qcheck.texi doc/qcheck-ver.texi
include Makefile.version