X-Git-Url: http://git.annexia.org/?p=xavierbot.git;a=blobdiff_plain;f=Makefile;h=26991b67d301b3a6f87ae002fbe07cf2cfaf3d1a;hp=fb78aa0f3ab6b623a00bdf6b41b6fd87eed3c721;hb=1ddb7873d30b80c638d22ec43a771bdb3fc5cb4c;hpb=d165f93ed79c62a1fa76f391d87ffc4d215b9efe diff --git a/Makefile b/Makefile index fb78aa0..26991b6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.1 2007/06/28 19:47:26 rjones Exp $ +# $Id: Makefile,v 1.3 2007/06/28 23:18:28 rjones Exp $ include Makefile.config @@ -14,6 +14,7 @@ ocamlbotwrapper.c: ocamlbotwrapper.c.in Makefile.config sed \ -e 's|@OCAML@|$(OCAML)|' \ -e 's|@INITSCRIPT@|$(INITSCRIPT)|' \ + -e 's|@CHROOTDIR@|$(CHROOTDIR)|' \ < $< > $@ init: init.in Makefile.config @@ -32,5 +33,43 @@ pa_noexternal.cmo: pa_noexternal.ml ocamlfind ocamlc \ -pp "camlp4o pa_extend.cmo q_MLast.cmo" -I +camlp4 -c $< +test check: + perl -Tc xavierbot.pl + clean: - rm -f ocamlbotwrapper *.o *.cmo *.cmi *~ \ No newline at end of file + rm -f ocamlbotwrapper *.o *.cmo *.cmi *~ + +# Use this if you want to run without installing (see also +# instructions in Makefile.config): + +permissions: + chown root.root ocamlbotwrapper + chmod ug+s ocamlbotwrapper + +# Distribution. + +dist: + $(MAKE) check-manifest + rm -rf $(PACKAGE)-$(VERSION) + mkdir $(PACKAGE)-$(VERSION) + tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf - + tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) + rm -rf $(PACKAGE)-$(VERSION) + ls -l $(PACKAGE)-$(VERSION).tar.gz + +check-manifest: + @for d in `find -type d -name CVS | grep -v '^\./debian/'`; \ + do \ + b=`dirname $$d`/; \ + awk -F/ '$$1 != "D" {print $$2}' $$d/Entries | \ + sed -e "s|^|$$b|" -e "s|^\./||"; \ + done | sort > .check-manifest; \ + sort MANIFEST > .orig-manifest; \ + diff -u .orig-manifest .check-manifest; rv=$$?; \ + rm -f .orig-manifest .check-manifest; \ + exit $$rv + + +.PHONY: depend dist check-manifest dpkg doc print_test + +.SUFFIXES: .cmo .cmi .cmx .ml .mli