summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2011-08-15 15:52:04 +0200
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2011-08-15 15:53:00 +0200
commitdd2235d36ecf648e1074839bf9944233af03929f (patch)
tree4acde4eb0fdf700f2955001be6eb0042b50402d1
parentb4abeef8c75bc426654dec1bac1c8f367ed71845 (diff)
downloadgobject-introspection-dd2235d36ecf648e1074839bf9944233af03929f.tar.gz
tests/doctool: Better way of copying the .gir
-rw-r--r--tests/doctool/Makefile.am12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/doctool/Makefile.am b/tests/doctool/Makefile.am
index 21d1e7a0..373fa33d 100644
--- a/tests/doctool/Makefile.am
+++ b/tests/doctool/Makefile.am
@@ -1,16 +1,16 @@
include $(top_srcdir)/common.mk
-GIRepository-2.0.gir:
- cp ../../GIRepository-2.0.gir .
-
GIRS = GIRepository-2.0.gir
CHECK_TARGETS = $(GIRS:.gir=-C.page.check) $(GIRS:.gir=-Python.page.check)
MALLARD_DIRS = $(GIRS:.gir=-C) $(GIRS:.gir=-Python)
EXPECTED_MALLARD_DIRS = $(MALLARD_DIRS:=-expected)
-CLEANFILES = $(MALLARD_DIRS)
+CLEANFILES = $(MALLARD_DIRS) $(GIRS)
BUILT_SOURCES = $(MALLARD_DIRS)
EXTRA_DIST = $(EXPECTED_MALLARD_DIRS)
+%.gir:
+ cp ../../$*.gir .
+
%-C: %.gir
mkdir $*-C && $(INTROSPECTION_DOCTOOL) --language C --format mallard $*.gir -o $*-C/index.page && echo " GEN $*-C/index.page"
@@ -18,9 +18,9 @@ EXTRA_DIST = $(EXPECTED_MALLARD_DIRS)
mkdir $*-Python && $(INTROSPECTION_DOCTOOL) --language Python --format mallard $*.gir -o $*-Python/index.page && echo " GEN $*-Python/index.page"
%-C.page.check: %-C
- @diff -u -U 10 $(srcdir)/$*-C-expected $*-C && echo " TEST $*-C"
+ @diff -u -U 10 $(srcdir)/$*-C-expected $*-C && echo " TEST $*-C" && rm -rf $*-C
%-Python.page.check: %-Python
- @diff -u -U 10 $(srcdir)/$*-Python-expected $*-Python && echo " TEST $*-Python"
+ @diff -u -U 10 $(srcdir)/$*-Python-expected $*-Python && echo " TEST $*-Python" && rm -rf $*-Python
check-local: $(CHECK_TARGETS)