forked from B-Lang-org/bsc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
81 lines (57 loc) · 1.59 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
72
73
74
75
76
77
78
79
80
81
PWD := $(shell pwd)
TOP := $(PWD)/..
PREFIX ?= $(TOP)/inst
# -------------------------
INSTALL ?= install -c
RM = rm -f
# -------------------------
# Options
# Set this to 1 if the Asciidoctor tool is not available.
# PDF and HTML versions of the release notes will not be installed,
# only the raw AsciiDoc file.
#
NOASCIIDOCTOR ?= 0
# -------------------------
LICDIR = ../LICENSES
LICFILES = $(addprefix $(LICDIR)/, \
LICENSE.ghc \
LICENSE.hbc \
LICENSE.parsec \
LICENSE.stp \
LICENSE.stp_components \
LICENSE.yices \
LICENSE.yices-painless \
)
INSTALLFILES = ReleaseNotes.adoc
ifeq ($(NOASCIIDOCTOR),0)
INSTALLFILES += ReleaseNotes.html
INSTALLFILES += ReleaseNotes.pdf
endif
# -------------------------
.PHONY: install
install: install-README install-COPYING install-NOTES
$(PREFIX):
$(INSTALL) -m 755 -d $(PREFIX)
.PHONY: install-README
install-README: $(PREFIX) tarball-README
$(INSTALL) -m 644 tarball-README $(PREFIX)/README
.PHONY: install-COPYING
install-COPYING: $(PREFIX) $(LICFILES) tarball-COPYING
$(INSTALL) -m 755 -d $(PREFIX)/LICENSES
$(INSTALL) -m 644 $(LICFILES) $(PREFIX)/LICENSES/
$(INSTALL) -m 644 tarball-COPYING $(PREFIX)/COPYING
.PHONY: install-NOTES
install-NOTES: $(PREFIX) $(INSTALLFILES)
$(INSTALL) -m 644 $(INSTALLFILES) $(PREFIX)/
# -----
ReleaseNotes.html: ReleaseNotes.adoc
asciidoctor ReleaseNotes.adoc
ReleaseNotes.pdf: ReleaseNotes.adoc
asciidoctor-pdf --theme=default-with-font-fallbacks ReleaseNotes.adoc
# -----
.PHONY: clean
clean:
$(RM) ReleaseNotes.html ReleaseNotes.pdf
.PHONY: full_clean
full_clean: clean
# -------------------------