diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Makefile b/Makefile index 7b5b337..506d366 100644 --- a/Makefile +++ b/Makefile | |||
@@ -1,11 +1,20 @@ | |||
1 | # wikme | 1 | # wikme |
2 | 2 | ||
3 | PREFIX = /usr/bin | 3 | PREFIX = /usr/bin |
4 | CSC = csc -I$(PWD) | ||
4 | 5 | ||
5 | wikme: wikme.scm wikme-module.scm | 6 | OBJ = wikme.scm.o |
6 | csc -o $@ wikme.scm | ||
7 | 7 | ||
8 | .PHONY: install | 8 | wikme: main.scm $(OBJ) |
9 | $(CSC) -o $@ $(OBJ) -uses wikme main.scm | ||
10 | |||
11 | $(OBJ): wikme.scm wikme-impl.scm | ||
12 | $(CSC) -c -J wikme.scm -unit wikme -o $@ | ||
13 | |||
14 | .PHONY: install clean | ||
9 | 15 | ||
10 | install: wikme | 16 | install: wikme |
11 | install -Dt $(DESTDIR)$(PREFIX)/$@ $< | 17 | install -Dt $(DESTDIR)$(PREFIX)/$@ $< |
18 | |||
19 | clean: | ||
20 | rm -f *.import.scm *.so *.o | ||