git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
appliance: udev-174 moves udevd to /lib/udev/udevd (instead of /sbin/udevd)
[libguestfs.git]
/
haskell
/
Makefile.am
diff --git
a/haskell/Makefile.am
b/haskell/Makefile.am
index
3cb721f
..
d8a06f3
100644
(file)
--- a/
haskell/Makefile.am
+++ b/
haskell/Makefile.am
@@
-15,33
+15,47
@@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-EXTRA_DIST = *.hs run-bindtests
+include $(top_srcdir)/subdir-rules.mk
-CLEANFILES = *~
+generator_built = \
+ Guestfs.hs \
+ Bindtests.hs
+
+# $(generator_built) isn't redundant below as the wildcard rule won't match, and
+# therefore won't generate, the files if they haven't been created yet
+EXTRA_DIST = $(generator_built) *.hs run-bindtests
if HAVE_HASKELL
TESTS_ENVIRONMENT = \
LD_LIBRARY_PATH=$(top_builddir)/src/.libs \
LIBGUESTFS_PATH=$(top_builddir)/appliance \
if HAVE_HASKELL
TESTS_ENVIRONMENT = \
LD_LIBRARY_PATH=$(top_builddir)/src/.libs \
LIBGUESTFS_PATH=$(top_builddir)/appliance \
+ TMPDIR=$(top_builddir) \
$(VG)
$(VG)
-TESTS = run-bindtests Guestfs005Load Guestfs010
Launch Guestfs050LVCreate
+TESTS = run-bindtests Guestfs005Load Guestfs010
Basic
check_DATA = Bindtests
check_DATA = Bindtests
-GHCFLAGS = -I$(
abs_top_builddir)/src -L$(abs_
top_builddir)/src/.libs
+GHCFLAGS = -I$(
top_builddir)/src -L$(
top_builddir)/src/.libs
-Bindtests: Bindtests.hs Guestfs.hs
- $(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs
+all_targets = Bindtests Guestfs005Load Guestfs010Basic
+$(all_targets): $(top_builddir)/src/libguestfs.la
+
+all: $(all_targets)
-Guestfs005Load: Guestfs005Load.hs Guestfs.hs
+Guestfs.o: Guestfs.hs
+ $(GHC) $(GHCFLAGS) -c $<
+
+Bindtests: Bindtests.hs Guestfs.o
$(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs
$(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs
-Guestfs0
10Launch: Guestfs010Launch.hs Guestfs.hs
+Guestfs0
05Load: Guestfs005Load.hs Guestfs.o
$(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs
$(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs
-Guestfs0
50LVCreate: Guestfs050LVCreate.hs Guestfs.hs
+Guestfs0
10Basic: Guestfs010Basic.hs Guestfs.o
$(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs
$(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs
-endif
\ No newline at end of file
+CLEANFILES = $(all_targets) *~ *.hi *.o
+
+endif