summaryrefslogtreecommitdiff
path: root/slime-0.11/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'slime-0.11/Makefile')
-rw-r--r--slime-0.11/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/slime-0.11/Makefile b/slime-0.11/Makefile
new file mode 100644
index 0000000..e222167
--- /dev/null
+++ b/slime-0.11/Makefile
@@ -0,0 +1,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