about summary refs log tree commit diff stats
path: root/makefile
blob: 7587a65f4d0e5c0ae5231d4dc207743b6428e4fc (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
26
# CHICKEN-SCRATCH: here-doc templating for CHICKEN scheme
# (C) Case Duckworth <acdw@acdw.net>
# License: BSD-3.  See COPYING for details.

PREFIX = /usr

SOURCES = chicken-scratch.scm chicken-scratch.mod.scm

chicken-scratch: $(SOURCES)
	chicken-install -n

scratchdown: scratchdown.scm chicken-scratch
	csc $<

.PHONY: install
install: chicken-scratch scratchdown
	install -Dt $(PREFIX)/bin $^

.PHONY: chicken-install
chicken-install: chicken-scratch
	chicken-install

.PHONY: clean
clean:
	rm -f *.link *.so *.o *.build.sh *.import.scm *.install.sh
	rm -f chicken-scratch scratchdown