Fix build if xmlrpc-light package is missing.
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 7 Aug 2008 10:26:18 +0000 (11:26 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 7 Aug 2008 10:26:18 +0000 (11:26 +0100)
extract/fedora-koji/Makefile.in

index e91a3dc..9af56f3 100644 (file)
@@ -25,11 +25,7 @@ bindir               = @bindir@
 
 pkg_xmlrpc_light = @pkg_xmlrpc_light@
 
-OCAMLCPACKAGES =
-
-ifneq ($(pkg_xmlrpc_light),no)
-OCAMLCPACKAGES += -package xmlrpc-light,extlib
-endif
+OCAMLCPACKAGES = -package extlib,xmlrpc-light
 
 OCAMLCFLAGS    = @OCAMLCFLAGS@
 OCAMLCLIBS     = -linkpkg
@@ -38,7 +34,11 @@ OCAMLOPTFLAGS        = @OCAMLOPTFLAGS@
 OCAMLOPTPACKAGES = $(OCAMLCPACKAGES)
 OCAMLOPTLIBS   = -linkpkg
 
+ifneq ($(pkg_xmlrpc_light),no)
 TARGETS                = fedora-koji-download-kernels.opt
+else
+TARGETS                =
+endif
 
 OBJS           = fedora_koji_download_kernels.cmo
 XOBJS          = $(OBJS:.cmo=.cmx)