2 # Copyright (C) 2007-2014 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:
31 for d in . $(SUBDIRS); do \
32 (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so *.opt *~ *.dll *.exe core); \
37 rm -f config.h config.log config.status configure
45 $(MAKE) check-manifest
46 rm -rf $(PACKAGE)-$(VERSION)
47 mkdir $(PACKAGE)-$(VERSION)
48 tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
49 $(INSTALL) -m 0755 configure $(PACKAGE)-$(VERSION)/
50 $(INSTALL) -m 0644 aclocal.m4 $(PACKAGE)-$(VERSION)/
51 $(INSTALL) -m 0644 src/virt-top.1 $(PACKAGE)-$(VERSION)/src/
52 $(INSTALL) -m 0644 src/virt-top.txt $(PACKAGE)-$(VERSION)/src/
53 tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
54 rm -rf $(PACKAGE)-$(VERSION)
55 ls -l $(PACKAGE)-$(VERSION).tar.gz
58 git ls-files | sort > .check-manifest; \
59 sort MANIFEST > .orig-manifest; \
60 diff -u .orig-manifest .check-manifest; rv=$$?; \
61 rm -f .orig-manifest .check-manifest; \
64 ChangeLog: $(shell find -type f)
65 ./gitlog-to-changelog > $@.new
68 .PHONY: all opt depend install clean distclean force