Added German translation.
[virt-ctrl.git] / Makefile.in
1 # ocaml-libvirt
2 # Copyright (C) 2007 Red Hat Inc., Richard W.M. Jones
3 #
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.
8 #
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.
13 #
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
17
18 PACKAGE         = @PACKAGE_NAME@
19 VERSION         = @PACKAGE_VERSION@
20
21 INSTALL         = @INSTALL@
22
23 MAKENSIS        = @MAKENSIS@
24
25 SUBDIRS         = virt-ctrl
26
27 all opt depend install:
28         for d in $(SUBDIRS); do \
29           $(MAKE) -C $$d $@; \
30           if [ $$? -ne 0 ]; then exit 1; fi; \
31         done
32
33 clean:
34         for d in . $(SUBDIRS); do \
35           (cd $$d; rm -f *.cmi *.cmo *.cmx *.cma *.cmxa *.o *.a *.so *.opt *~ *.dll *.exe core); \
36         done
37         rm -f examples/list_domains
38         rm -f examples/node_info
39         rm -f mlvirsh/mlvirsh
40         rm -f virt-ctrl/virt-ctrl
41         rm -f virt-top/virt-top
42         rm -f virt-df/virt-df
43
44 distclean: clean
45         rm -f config.h config.log config.status configure
46         rm -rf autom4te.cache
47         rm -f META
48         rm -f libvirt/libvirt_version.ml
49         rm -f Makefile
50         rm -f libvirt/Makefile
51         rm -f examples/Makefile
52         rm -f mlvirsh/Makefile
53         rm -f virt-ctrl/Makefile
54         rm -f virt-top/Makefile
55         rm -f virt-df/Makefile
56
57 # Windows installer (requires NSIS).
58
59 WININSTALLER := $(PACKAGE)-$(VERSION).exe
60
61 ifneq ($(MAKENSIS),)
62 wininstaller: $(WININSTALLER)
63
64 $(WININSTALLER): wininstaller.nsis all opt
65         "$(MAKENSIS)" \
66           //DPACKAGE=$(PACKAGE) //DVERSION=$(VERSION) \
67           //DOUTFILE=$@ $<
68         ls -l $@
69 endif
70
71 # Distribution.
72
73 dist:
74         $(MAKE) check-manifest
75         rm -rf $(PACKAGE)-$(VERSION)
76         mkdir $(PACKAGE)-$(VERSION)
77         tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -
78         $(INSTALL) -m 0755 configure $(PACKAGE)-$(VERSION)/
79         tar zcf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
80         rm -rf $(PACKAGE)-$(VERSION)
81         ls -l $(PACKAGE)-$(VERSION).tar.gz
82
83 check-manifest:
84         hg manifest | sort > .check-manifest; \
85         sort MANIFEST > .orig-manifest; \
86         diff -u .orig-manifest .check-manifest; rv=$$?; \
87         rm -f .orig-manifest .check-manifest; \
88         exit $$rv
89
90 .PHONY: all opt depend install clean distclean configure dist check-manifest \
91         release release_stage_2 release_stage_3 force