diff options
author | Case Duckworth | 2023-04-03 22:07:04 -0500 |
---|---|---|
committer | Case Duckworth | 2023-04-03 22:07:04 -0500 |
commit | a1cde11d5ebe95a365120eb5aeb7f65469e44b30 (patch) | |
tree | ecc91700447039733daebc04a6581dd01b92e7ed /Makefile | |
parent | It builds now (diff) | |
download | wikme-a1cde11d5ebe95a365120eb5aeb7f65469e44b30.tar.gz wikme-a1cde11d5ebe95a365120eb5aeb7f65469e44b30.zip |
Changes and stuff
I have done a bad job of documenting what I'm doing - it builds now - run `make` - it builds the pages in test/ and links them - ... that's it
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/Makefile b/Makefile index 506d366..1dd66d1 100644 --- a/Makefile +++ b/Makefile | |||
@@ -1,20 +1,28 @@ | |||
1 | # wikme | 1 | # wikme |
2 | 2 | ||
3 | PREFIX = /usr/bin | 3 | PREFIX = /usr/bin |
4 | CSC = csc -I$(PWD) | 4 | CSC = csc -R r7rs |
5 | 5 | ||
6 | OBJ = wikme.scm.o | 6 | NAME = wikme |
7 | PROG = $(NAME).scm | ||
8 | SOURCE = $(NAME).ss | ||
9 | LIB = $(NAME).sld | ||
10 | OBJ = $(NAME)-lib.o | ||
7 | 11 | ||
8 | wikme: main.scm $(OBJ) | 12 | $(NAME): $(PROG) $(OBJ) |
9 | $(CSC) -o $@ $(OBJ) -uses wikme main.scm | 13 | $(CSC) -o $@ $(OBJ) -uses $(NAME) $(PROG) |
10 | 14 | ||
11 | $(OBJ): wikme.scm wikme-impl.scm | 15 | $(OBJ): $(LIB) |
12 | $(CSC) -c -J wikme.scm -unit wikme -o $@ | 16 | $(CSC) -c -J $(LIB) -unit $(NAME) -o $@ |
13 | 17 | ||
14 | .PHONY: install clean | 18 | $(LIB): $(SOURCE) |
15 | 19 | ||
16 | install: wikme | 20 | .PHONY: install test clean |
17 | install -Dt $(DESTDIR)$(PREFIX)/$@ $< | 21 | |
22 | install: $(NAME) | ||
23 | install -Dt $(DESTDIR)$(PREFIX)/$@ $(NAME) | ||
24 | |||
25 | test: # TODO | ||
18 | 26 | ||
19 | clean: | 27 | clean: |
20 | rm -f *.import.scm *.so *.o | 28 | rm -f *.import.scm *.so *.o |