mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
haskell: Fix separated builds.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
include $(top_srcdir)/subdir-rules.mk
|
||||
|
||||
generator_built = \
|
||||
Guestfs.hs \
|
||||
$(srcdir)/Guestfs.hs \
|
||||
Bindtests.hs
|
||||
|
||||
# $(generator_built) isn't redundant below as the wildcard rule won't match, and
|
||||
@@ -85,7 +85,7 @@ built_tests = Bindtests Guestfs010Load Guestfs030Config Guestfs050LVCreate
|
||||
# directories per target.
|
||||
|
||||
$(built_tests): %: %.hs Guestfs.hs
|
||||
$(GHC) $(GHCFLAGS) --make -main-is $@ -odir .$@ -o $@ $< Guestfs.hs -lguestfs
|
||||
$(GHC) $(GHCFLAGS) --make -main-is $@ -odir .$@ -o $@ $< $(srcdir)/Guestfs.hs -lguestfs
|
||||
|
||||
|
||||
CLEANFILES = $(all_targets) *~ *.hi *.o test.img
|
||||
|
||||
Reference in New Issue
Block a user