Add libguestfs upstream build rules.
[goaljobs-goals.git] / Makefile
1 # Is it ironic that we use a Makefile to build these goals?
2
3 # Comment out the next line if goaljobs is installed.  If it is not
4 # installed, change the path to the location of the goaljobs build
5 # directory.
6 pkgdir = ../goaljobs
7
8 ifeq ($(pkgdir),)
9 goaljobs = goaljobs
10 else
11 goaljobs = $(pkgdir)/goaljobs --pkgdir=$(pkgdir)
12 endif
13
14 all: \
15         fedora_ocaml_rebuild \
16         libguestfs_upstream
17
18 fedora_ocaml_rebuild: config.ml utils.ml fedora.ml fedora_ocaml_rebuild.ml
19         $(goaljobs) --package pcre,extlib $^ -o $@
20
21 libguestfs_upstream: config.ml libguestfs_upstream.ml
22         $(goaljobs) $^ -o $@