franzinc / aserve

AllegroServe, a web server written in Common Lisp

aserve / makefile
100644 60 lines (47 sloc) 1.624 kb
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# On Windows, this makefile requires the use of GNU make from Redhat
# (http://sources.redhat.com/cygwin/).
 
SHELL = sh
 
on_windows = $(shell if test -d "c:/"; then echo yes; else echo no; fi)
 
use_dcl = $(shell if test -f ../dcl.dxl; then echo yes; else echo no; fi)
 
ifeq ($(use_dcl),yes)
mlisp = ../lisp -I dcl.dxl
endif
 
ifndef mlisp
ifeq ($(on_windows),yes)
mlisp = "/cygdrive/c/Program Files/acl81/mlisp.exe" +B +cn
else
mlisp = /fi/cl/8.1/bin/mlisp
endif
endif
 
build: FORCE
rm -f build.tmp
echo '(setq excl::*break-on-warnings* t)' >> build.tmp
echo '(load "load.cl")' >> build.tmp
echo '(make-aserve.fasl)' >> build.tmp
# -batch must come before -L, since arguments are evaluated from left to right
$(mlisp) -batch -L build.tmp -kill
 
test: FORCE
rm -f build.tmp
echo '(setq excl::*break-on-warnings* t)' >> build.tmp
echo '(load "load.cl")' >> build.tmp
echo '(dribble "test.out")' >> build.tmp
echo '(load "test/t-aserve.cl")' >> build.tmp
echo '(exit util.test::*test-errors*)' >> build.tmp
# -batch must come before -L, since arguments are evaluated from left to right
$(mlisp) -batch -L build.tmp -kill
 
srcdist: FORCE
rm -f build.tmp
echo '(setq excl::*break-on-warnings* t)' >> build.tmp
echo '(load "load.cl")' >> build.tmp
echo '(make-src-distribution "aserve")' >> build.tmp
# -batch must come before -L, since arguments are evaluated from left to right
$(mlisp) -batch -L build.tmp -kill
 
clean: FORCE
rm -f build.tmp
find . -name '*.fasl' -print | xargs rm -f
 
cleanall distclean: clean
rm -fr aserve-src
 
tags: FORCE
rm -f TAGS
find . -name '*.cl' -print | xargs etags -a
 
FORCE: