3 # Copyright (C) 2007-2008 Red Hat Inc., Richard W.M. Jones
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2 of the License, or (at your option) any later version.
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 PACKAGE = @PACKAGE_NAME@
20 VERSION = @PACKAGE_VERSION@
24 SUBDIRS = lib virt-df diskzip
26 all opt depend install doc:
27 for d in $(SUBDIRS); do \
29 if [ $$? -ne 0 ]; then exit 1; fi; \
33 for d in . $(SUBDIRS); do \
34 (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a \
35 *.so *.opt *~ *.dll *.exe *.annot core); \
41 rm -f config.h config.log config.status configure
44 rm -f virt-df/Makefile
49 $(MAKE) check-manifest
50 rm -rf $(PACKAGE)-$(VERSION)
51 mkdir $(PACKAGE)-$(VERSION)
52 tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
53 $(INSTALL) -m 0755 configure $(PACKAGE)-$(VERSION)/
54 tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
55 rm -rf $(PACKAGE)-$(VERSION)
56 ls -l $(PACKAGE)-$(VERSION).tar.gz
59 hg manifest | sort > .check-manifest; \
60 sort MANIFEST > .orig-manifest; \
61 diff -u .orig-manifest .check-manifest; rv=$$?; \
62 rm -f .orig-manifest .check-manifest; \
65 .PHONY: all opt depend install clean distclean configure dist check-manifest \
66 release release_stage_2 release_stage_3 force