about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorCase Duckworth2023-04-03 22:07:04 -0500
committerCase Duckworth2023-04-03 22:07:04 -0500
commita1cde11d5ebe95a365120eb5aeb7f65469e44b30 (patch)
treeecc91700447039733daebc04a6581dd01b92e7ed /Makefile
parentIt builds now (diff)
downloadwikme-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--Makefile26
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
3PREFIX = /usr/bin 3PREFIX = /usr/bin
4CSC = csc -I$(PWD) 4CSC = csc -R r7rs
5 5
6OBJ = wikme.scm.o 6NAME = wikme
7PROG = $(NAME).scm
8SOURCE = $(NAME).ss
9LIB = $(NAME).sld
10OBJ = $(NAME)-lib.o
7 11
8wikme: 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
16install: wikme 20.PHONY: install test clean
17 install -Dt $(DESTDIR)$(PREFIX)/$@ $< 21
22install: $(NAME)
23 install -Dt $(DESTDIR)$(PREFIX)/$@ $(NAME)
24
25test: # TODO
18 26
19clean: 27clean:
20 rm -f *.import.scm *.so *.o 28 rm -f *.import.scm *.so *.o