crow-httpd: switch from CVS RCSID to GIT revision for versioning
[mmondor.git] / mmsoftware / cl / server / GNUmakefile
CommitLineData
ace88c7a 1MODULES := character dlist syslog ecl-mp-server html const-file embedded-files io httpd
9c075b94
MM
2FASLS := $(addsuffix .fas,$(MODULES))
3OBJECTS := $(addsuffix .o,$(MODULES))
4
ea94eebd 5APPLICATIONS := $(addsuffix .fas,crow-test-applications)
229244b5 6CONFIGS := httpd-config.lisp mime-types.lisp
4c572476 7ECL := TMPDIR=/var/tmp/ /usr/local/ecl/bin/ecl -norc
9c075b94
MM
8TAR := tar
9
229244b5
MM
10ARCHIVE := crow-httpd.tgz
11BINARY := crow-httpd
12
4949c868
MM
13REVISION := $(shell git describe --always)
14
314df60f 15all: $(BINARY) $(ARCHIVE)
9c075b94 16
3187dd24 17embedded-files.fas: htdocs/crow-httpd-logo.png htdocs/crow-httpd.css htdocs/valid-xhtml.png htdocs/crow-httpd-icon.png
53b9c28d 18
d375bb2f
MM
19$(ARCHIVE): $(FASLS) $(APPLICATIONS) $(BINARY)
20 tar czvf $(ARCHIVE) $(FASLS) $(APPLICATIONS) $(BINARY) $(CONFIGS)
9c075b94 21
314df60f 22$(BINARY): $(FASLS) $(OBJECTS)
9c075b94
MM
23 $(ECL) -o crow-httpd -link $(OBJECTS)
24
25%.fas: %.lisp
59a897b4 26 $(ECL) -compile $<
9c075b94
MM
27
28%.o: %.lisp
4949c868 29 $(ECL) -eval "(defparameter cl-user::*crow-revision* \"$(REVISION)\") (pushnew :mm-ecl-standalone *features*)" -o $@ -s -compile $<
9c075b94
MM
30
31clean:
5b76b8f3 32 rm -f $(APPLICATIONS) $(BINARY) $(ARCHIVE) $(OBJECTS) $(FASLS) ecl?????? ecl????????? ecl?????????.* ecl-swank-tmpfile-* *.c *.eclh *.data *~
ea94eebd
MM
33
34install:
e856b90a 35 groupadd crow-httpd || true
ea94eebd
MM
36 install -c -o 0 -g crow-httpd -m 550 crow-httpd /usr/local/sbin
37 install -c -o 0 -g crow-httpd -m 550 crow-test-applications.fas /usr/local/libexec