blob: e0723e55411ad8c0effea20455d2b11cfda4c722 (
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
27
28
29
30
|
# wikme
PREFIX = /usr/bin
CSC = csc -R r7rs
NAME = wikme
PROG = $(NAME).scm
SOURCE = $(NAME).ss
LIB = $(NAME).sld
OBJ = $(NAME)-lib.o
$(NAME): $(PROG) $(OBJ)
$(CSC) -o $@ $(OBJ) -uses $(NAME) $(PROG)
$(OBJ): $(LIB)
$(CSC) -c -J $(LIB) -unit $(NAME) -o $@
$(LIB): $(SOURCE)
.PHONY: install test clean
install: $(NAME)
install -Dt $(DESTDIR)$(PREFIX)/$@ $(NAME)
test: $(NAME)
@echo "Converting test/ to a wiki in out/ ..."
./$(NAME) test -o out
clean:
rm -f *.import.scm *.so *.o
|