source: project/sqlite3-tinyclos/tags/1.2.3/Makefile @ 4991

Last change on this file since 4991 was 4991, checked in by Thomas Chust, 13 years ago

[sqlite3-tinyclos] Conversion of repository directory layout, step 1

File size: 1.1 KB
Line 
1CSI=csi
2CSC=csc
3TAR=tar
4ENSCRIPT=enscript
5
6CSCFLAGS=-O2 -d0 -X tinyclos -check-imports
7LDLIBS=
8
9NAME=sqlite3-tinyclos
10VERSION=1.2.3
11
12.PHONY: all clean
13
14all: $(NAME).egg $(NAME).so
15
16clean:
17        $(RM) $(addprefix $(NAME),.egg .so .html .setup)
18        $(RM) $(NAME)-demo.html
19
20$(NAME).egg: $(addprefix $(NAME),.scm .html .setup) egg.jpg doc.scm $(NAME)-demo.scm Makefile
21        $(TAR) czf $@ $^
22
23$(NAME).html: doc.scm $(NAME)-demo.html
24        $(CSI) -s $< >$@
25
26$(NAME).setup: Makefile
27        echo "(define so-file" >$@; \
28        echo "  (string-append" >>$@; \
29        echo "    \"$(NAME).\"" >>$@; \
30        echo "    (if (eq? (software-type) 'windows) \"dll\" \"so\")))" >>$@; \
31        echo "(compile" >>$@; \
32        echo $(CSCFLAGS) -s \"$(NAME).scm\" $(LDLIBS)" >>$@; \
33        echo "  -o ,so-file -emit-exports \"$(NAME).exports\")" >>$@; \
34        echo "(install-extension" >>$@; \
35        echo "  '$(NAME)" >>$@; \
36        echo "  \`(\"$(NAME).scm\" ,so-file" >>$@; \
37        echo "    \"$(NAME).html\" \"egg.jpg\")" >>$@; \
38        echo "  '((version \"$(VERSION)\") (documentation \"$(NAME).html\")))" >>$@
39
40%.html: %.scm
41        $(ENSCRIPT) --color --pretty-print=scheme --language=html $< -o $@
42
43%.so: %.scm
44        $(CSC) $(CSCFLAGS) -s $< $(LDLIBS) -o $@
Note: See TracBrowser for help on using the repository browser.