2 # Copyright (C) 2007-2009 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@
27 all opt depend install:
28 for d in $(SUBDIRS); do \
30 if [ $$? -ne 0 ]; then exit 1; fi; \
34 for d in . $(SUBDIRS); do \
35 (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so *.opt *~ *.dll *.exe core); \
37 rm -f virt-top/virt-top
40 rm -f config.h config.log config.status configure
43 rm -f virt-top/Makefile
48 $(MAKE) check-manifest
49 rm -rf $(PACKAGE)-$(VERSION)
50 mkdir $(PACKAGE)-$(VERSION)
51 tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
52 $(INSTALL) -m 0755 configure $(PACKAGE)-$(VERSION)/
53 $(INSTALL) -m 0644 virt-top/virt-top.1 $(PACKAGE)-$(VERSION)/virt-top/
54 $(INSTALL) -m 0644 virt-top/virt-top.txt $(PACKAGE)-$(VERSION)/virt-top/
55 tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
56 rm -rf $(PACKAGE)-$(VERSION)
57 ls -l $(PACKAGE)-$(VERSION).tar.gz
60 git ls-files | sort > .check-manifest; \
61 sort MANIFEST > .orig-manifest; \
62 diff -u .orig-manifest .check-manifest; rv=$$?; \
63 rm -f .orig-manifest .check-manifest; \
66 ChangeLog: $(shell find -type f)
67 ./gitlog-to-changelog > $@.new
70 .PHONY: all opt depend install clean distclean force