1 # $Id: Makefile,v 1.2 2007/06/28 20:49:10 rjones Exp $
3 include Makefile.config
6 CFLAGS := -Wall -Werror
8 all: pa_noexternal.cmo init ocamlbotwrapper xavierbot.pl
10 ocamlbotwrapper: ocamlbotwrapper.o
11 $(CC) $(CFLAGS) $< -o $@
13 ocamlbotwrapper.c: ocamlbotwrapper.c.in Makefile.config
15 -e 's|@OCAML@|$(OCAML)|' \
16 -e 's|@INITSCRIPT@|$(INITSCRIPT)|' \
17 -e 's|@CHROOTDIR@|$(CHROOTDIR)|' \
20 init: init.in Makefile.config
22 -e 's|@OCAMLUSER@|$(OCAMLUSER)|' \
23 -e 's|@CHROOTDIR@|$(CHROOTDIR)|' \
26 xavierbot.pl: xavierbot.pl.in Makefile.config
28 -e 's|@WRAPPER@|$(WRAPPER)|' \
32 pa_noexternal.cmo: pa_noexternal.ml
34 -pp "camlp4o pa_extend.cmo q_MLast.cmo" -I +camlp4 -c $<
37 rm -f ocamlbotwrapper *.o *.cmo *.cmi *~
42 $(MAKE) check-manifest
43 rm -rf $(PACKAGE)-$(VERSION)
44 mkdir $(PACKAGE)-$(VERSION)
45 tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
46 tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
47 rm -rf $(PACKAGE)-$(VERSION)
48 ls -l $(PACKAGE)-$(VERSION).tar.gz
51 @for d in `find -type d -name CVS | grep -v '^\./debian/'`; \
54 awk -F/ '$$1 != "D" {print $$2}' $$d/Entries | \
55 sed -e "s|^|$$b|" -e "s|^\./||"; \
56 done | sort > .check-manifest; \
57 sort MANIFEST > .orig-manifest; \
58 diff -u .orig-manifest .check-manifest; rv=$$?; \
59 rm -f .orig-manifest .check-manifest; \
63 .PHONY: depend dist check-manifest dpkg doc print_test
65 .SUFFIXES: .cmo .cmi .cmx .ml .mli