Try to improve robustness, make kerneldb additions atomic.
[virt-mem.git] / extract / fedora-koji / Makefile.in
1 # virt-mem
2 # @configure_input@
3 # Copyright (C) 2008 Red Hat Inc., Richard W.M. Jones
4 #
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.
9 #
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.
14 #
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
18
19 PACKAGE         = @PACKAGE_NAME@
20 VERSION         = @PACKAGE_VERSION@
21
22 INSTALL         = @INSTALL@
23 MKDIR_P         = @MKDIR_P@
24 bindir          = @bindir@
25
26 pkg_xmlrpc_light = @pkg_xmlrpc_light@
27
28 OCAMLCPACKAGES  = -package extlib,xmlrpc-light
29
30 OCAMLCFLAGS     = @OCAMLCFLAGS@
31 OCAMLCLIBS      = -linkpkg
32
33 OCAMLOPTFLAGS   = @OCAMLOPTFLAGS@
34 OCAMLOPTPACKAGES = $(OCAMLCPACKAGES)
35 OCAMLOPTLIBS    = -linkpkg
36
37 ifneq ($(pkg_xmlrpc_light),no)
38 TARGETS         = fedora-koji-download-kernels.opt
39 else
40 TARGETS         =
41 endif
42
43 OBJS            = koji.cmo fedora_koji_download_kernels.cmo
44 XOBJS           = $(OBJS:.cmo=.cmx)
45
46 all: byte opt
47
48 byte:
49
50 opt:    $(TARGETS)
51
52 fedora-koji-download-kernels.opt: $(XOBJS)
53         ocamlfind ocamlopt \
54           $(OCAMLOPTFLAGS) $(OCAMLOPTPACKAGES) $(OCAMLOPTLIBS) $(XOBJS) -o $@
55
56 install:
57
58 include ../../Make.rules