summaryrefslogtreecommitdiff
path: root/slime-0.11/Makefile
blob: e222167b4c3bc0d6d8f902e69afc7bb33cf24844 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
prefix=/usr/local
bindir=$(prefix)/bin
libdir=$(prefix)/lib/slime

# The following is for my private use, not for other people.
release_root=$(HOME)/public_html/Slime

all:
	echo foo
	
install:
	test -d $(bindir) || mkdir -p $(bindir)
	test -d $(libdir) || mkdir -p $(libdir)
	sed 's @slimedir@ $(libdir) g' slime > $(bindir)/slime
	chmod a+rx $(bindir)/slime
	cp *.py $(libdir)
	chmod a+r $(libdir)/*
	python -c 'import compileall; compileall.main()' $(libdir)

manual:
	cd doc; debiandoc2html slime-manual.sgml

release:
	if [ -z "$(version)" ]; then \
		echo "Use 'make release version=1.2.3' to make a release."; \
		exit 1; fi
	rm -rf x
	mkdir x
	cd x && tag=version_`echo $(version) | tr . _` && \
	cvs -q export -d slime-$(version) -r $$tag slime && \
	tar cf - slime-$(version) | gzip -9 > ../slime-$(version).tar.gz
	cp slime-$(version).tar.gz $(release_root)/slime.tar.gz
	cp x/slime-$(version)/README $(release_root)/README
	cp x/slime-$(version)/Changes $(release_root)/Changes
	cp x/slime-$(version)/slime.html $(release_root)/index.html
	cd x/slime-$(version) && $(MAKE) manual && \
		rm -rf $(release_root)/slime-manual.html && \
		cp -a doc/slime-manual.html $(release_root)
	rm -rf x

profile:
	python -c 'import profile, slime_unix; profile.run("slime_unix.profile_main()", "profile.out")'
	python -c 'import pstats; p=pstats.Stats("profile.out"); p.strip_dirs().sort_stats("stdname").print_stats(); p.print_callers(); p.print_callees()' > profile.txt

clean:
	rm -f *.pyc
	rm -rf doc/slime-manual.html