File: Makefile

package info (click to toggle)
cl-soap 20060105-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 348 kB
  • ctags: 258
  • sloc: lisp: 2,325; makefile: 81
file content (69 lines) | stat: -rw-r--r-- 2,171 bytes parent folder | download | duplicates (2)
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
61
62
63
64
65
66
67
68
69
#
# This makefile contains command line tools to maintain this project
# Portability at this level is accidental, only LispWorks on Mac OS X is supported here
# For some operations, edit the necessary variables to suit your environment
# Some operations can obviously only be done by a specific person in a very specific context ;-)
#

default:
	@echo Welcome to CL-SOAP, a Common Lisp implementation of SOAP
	@echo
	@echo Possible makefile targets:
	@echo
	@echo clean-fasl --- remove all known lisp compiled fasl files recursively
	@echo clean-emacs --- remove all '*~' recursively
	@echo clean --- all of the above
	@echo dist-clean --- remove all generated files and archives
	@echo compile --- compile the project through ASDF
	@echo check --- run all unit and functional tests for this project
	@echo test --- run all unit and functional tests for this project
	@echo release --- make a formal, public release
	@echo metrics --- calculate some loc metrics

clean-fasl:
	find . -name "*.fas" | xargs rm
	find . -name "*.lib" | xargs rm
	find . -name "*.nfasl" | xargs rm
	find . -name "*.dfsl" | xargs rm
	find . -name "*.fasl" | xargs rm

clean-emacs:
	find . -name "*~" | xargs rm

clean: clean-fasl clean-emacs

dist-clean: clean
	rm -rf *.tar.gz
	rm -rf *.asc

metrics:
	find src -name "*.lisp" | xargs wc -l
	find test -name "*.lisp" | xargs wc -l

LISP=/Applications/LispWorks/lispworks-tty
PRJ=cl-soap

compile:
	echo "(asdf:oos 'asdf:compile-op :$(PRJ)) :ok" | $(LISP) 

DIR=`pwd`/
SRCDIR=$(DIR)src/
TESTDIR=$(DIR)test/

test: check

check: 
	echo "(asdf:oos 'asdf:load-op :$(PRJ)) (load \"$(TESTDIR)all-tests.lisp\") :ok" | $(LISP)

ACCOUNT=scaekenberghe
CVSRT=:ext:$(ACCOUNT)@common-lisp.net:/project/$(PRJ)/cvsroot

release: test
	rm -rf /tmp/$(PRJ) /tmp/public_html /tmp/$(PRJ).tgz /tmp/$(PRJ).tgz.asc
	cd /tmp; cvs -d$(CVSRT) export -r HEAD $(PRJ); cvs -d$(CVSRT) export -r HEAD public_html
	mv /tmp/public_html /tmp/$(PRJ)/doc
	cd /tmp; gnutar cvfz $(PRJ).tgz $(PRJ); gpg -a -b $(PRJ).tgz
	scp /tmp/$(PRJ).tgz $(ACCOUNT)@common-lisp.net:/project/$(PRJ)/public_html
	scp /tmp/$(PRJ).tgz.asc $(ACCOUNT)@common-lisp.net:/project/$(PRJ)/public_html

# EOF