aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile
blob: 0b5ff3348d329acc8d432171b6efb7e93668ad88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PREFIX ?= ..

all: synthesis

%: %.scm
	chicken-csc -static -o $@ $<

%.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