2 # Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 PACKAGE = @PACKAGE_NAME@
19 VERSION = @PACKAGE_VERSION@
24 OCAMLDOCFLAGS := -html -sort
26 SUBDIRS = lib virt-df diskzip
28 all opt depend install:
29 for d in $(SUBDIRS); do \
31 if [ $$? -ne 0 ]; then exit 1; fi; \
35 for d in . $(SUBDIRS); do \
36 (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a \
37 *.so *.opt *~ *.dll *.exe core); \
42 rm -f config.h config.log config.status configure
45 rm -f virt-df/Makefile
47 # Developer documentation (in html/ subdirectory).
54 $(OCAMLDOC) $(OCAMLDOCFLAGS) -d ../html \
55 -I +extlib -I +bitmatch \
56 diskimage.mli diskimage.ml
62 $(MAKE) check-manifest
63 rm -rf $(PACKAGE)-$(VERSION)
64 mkdir $(PACKAGE)-$(VERSION)
65 tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
66 $(INSTALL) -m 0755 configure $(PACKAGE)-$(VERSION)/
67 tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
68 rm -rf $(PACKAGE)-$(VERSION)
69 ls -l $(PACKAGE)-$(VERSION).tar.gz
72 hg manifest | sort > .check-manifest; \
73 sort MANIFEST > .orig-manifest; \
74 diff -u .orig-manifest .check-manifest; rv=$$?; \
75 rm -f .orig-manifest .check-manifest; \
78 .PHONY: all opt depend install clean distclean configure dist check-manifest \
79 release release_stage_2 release_stage_3 force