forked from league/qcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.version
45 lines (38 loc) · 1023 Bytes
/
Makefile.version
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
# -*- Makefile -*-
PERL = perl
EMACS = emacs
TEXI2HTML = texi2html -split chapter
SML = sml
CM = .cm
MOSMLC = mosmlc
MOSML = mosml
MOSMLFLAGS =
MOSMAKE = compat/moscow/mosmake
MOSMAKEDIRS = src tests
MLTON = mlton
POLY = poly
MAJOR=1
MINOR=1
VERSION=$(MAJOR).$(MINOR)
RELEASED=April 2008
VERSION_SRC=src/QCheckVersion.sml
$(VERSION_SRC): Makefile.version
echo 'structure QCheckVersion = struct' >$@
echo 'val version = ($(MAJOR),$(MINOR)) ' >>$@
echo 'val context = "\' >>$@
darcs changes --context \
| sed 's/\(\"\|\\\)/\\\1/g' \
| sed 's/^\(.*\)$$/\\\1\\n\\/' >>$@
echo '\" end' >>$@
doc/qcheck-ver.texi: Makefile.version
echo '@set VERSION $(VERSION)' >$@
echo '@set RELEASED $(RELEASED)' >>$@
doc/sml-ver.texi: Makefile.version
echo '@item' >$@
$(SML) </dev/null | head -1 >>$@
echo '@item' >>$@
$(MOSMLC) -v | grep 'compiler version' >>$@
echo '@item' >>$@
$(MLTON) >>$@
echo '@item' >>$@
$(POLY) -v >>$@