blob: 3892723b50d1da6f49c00fa94530d86b93e99dff (
plain)
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
|
PREFIX ?= ..
all: synthesis-results
%: %.scm
$(eval TMP := $(shell mktemp))
echo "(main (command-line-arguments))" >$(TMP)
chicken-csc -static -epilogue $(TMP) -output-file $@ $<
rm $(TMP)
%.1: %.org
emacs --batch --file $< --load ../docs/res/publish.el --funcall org-man-export-to-man
mv $(<:.org=.man) $@
install: synthesis-results synthesis-results.1
install -d $(PREFIX)/bin
install -C synthesis-results $(PREFIX)/bin
install -d $(PREFIX)/share/man/man1
install -C -m 644 synthesis-results.1 $(PREFIX)/share/man/man1
clean:
rm -f synthesis-results synthesis-results.1
rm -f *.link
.PHONY: all install
|