git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NFC: Allow multiple config files in inspect_with_augeas in inspect_fs_unix.c
[libguestfs.git]
/
haskell
/
Makefile.am
diff --git
a/haskell/Makefile.am
b/haskell/Makefile.am
index
1836a14
..
5c1ff98
100644
(file)
--- a/
haskell/Makefile.am
+++ b/
haskell/Makefile.am
@@
-13,7
+13,7
@@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139,
USA.
+# Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
include $(top_srcdir)/subdir-rules.mk
include $(top_srcdir)/subdir-rules.mk
@@
-25,33
+25,37
@@
generator_built = \
# therefore won't generate, the files if they haven't been created yet
EXTRA_DIST = $(generator_built) *.hs run-bindtests
# therefore won't generate, the files if they haven't been created yet
EXTRA_DIST = $(generator_built) *.hs run-bindtests
-CLEANFILES = *~
-
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$(top_builddir)/src -L$(top_builddir)/src/.libs
+GHCFLAGS = -I$(top_builddir)/src -L$(top_builddir)/src/.libs
-i$(srcdir)
-all: Bindtests Guestfs005Load Guestfs010Launch Guestfs050LVCreate
+all_targets = Bindtests Guestfs005Load Guestfs010Basic
+$(all_targets): $(top_builddir)/src/libguestfs.la
-Bindtests: Bindtests.hs Guestfs.hs
- $(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs
+all: $(all_targets)
-Guestfs005Load: Guestfs005Load.hs Guestfs.hs
+Guestfs.o: $(srcdir)/Guestfs.hs
+ $(GHC) $(GHCFLAGS) -c $< -o $@
+
+Bindtests: $(srcdir)/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: $(srcdir)/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: $(srcdir)/Guestfs010Basic.hs Guestfs.o
$(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs
$(GHC) $(GHCFLAGS) -main-is $(shell basename $@) --make -o $@ $< -lguestfs
+CLEANFILES = $(all_targets) *~ *.hi *.o
+
endif
endif