Makefile 933 Bytes
Newer Older
1
# Copyright 2003-2007 Savonet team
2

3 4 5 6
SRC := src
PROGNAME := ocaml-dtools
DISTFILES := config.guess config.sub install-sh m4/*.m4 bootstrap CHANGES configure configure.ac \
            COPYING Makefile README Makefile.in \
7 8
            src/OCamlMakefile src/*Makefile.in src/META.in src/*.ml src/*.mli \
            doc/html
9
VERSION := 0.4.1
10 11

all:
12
	$(MAKE) -C $(SRC)
13 14

clean:
15
	$(MAKE) -C $(SRC) clean
16 17

install:
18
	$(MAKE) -C $(SRC) install
19 20

uninstall:
21
	$(MAKE) -C $(SRC) uninstall
22 23

update:
24
	$(MAKE) -C $(SRC) update
25 26 27 28 29 30 31

distclean: clean
	rm -rf autom4te.cache config.log config.status
	rm -rf doc/html
	rm -f src/META src/Makefile

doc:
32
	$(MAKE) -C src htdoc
33 34 35 36 37 38
	mkdir -p doc
	rm -rf doc/html
	mv src/doc/dtools/html doc
	rm -rf src/doc

dist: doc
39 40 41 42
	mkdir $(PROGNAME)-$(VERSION)
	cp -R -L --parents $(DISTFILES) $(PROGNAME)-$(VERSION)
	tar zcvf ../$(PROGNAME)-$(VERSION).tar.gz $(PROGNAME)-$(VERSION)
	rm -rf $(PROGNAME)-$(VERSION)
43 44

.PHONY: doc
45