* Makefile.am (doc, pretty-check): Remove targets.
(LOCAL_RECURSIVE_TARGETS): New.
Add doc and pretty-check.
($(LOCAL_RECURSIVE_TARGETS)): New (phony) target.
---
ChangeLog | 9 +++++++++
Makefile.am | 12 ++++--------
2 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 91694f8..202fa40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2009-06-08 Roland Levillain <roland(a)lrde.epita.fr>
+ Factor local recursive targets in top-level Makefile.
+
+ * Makefile.am (doc, pretty-check): Remove targets.
+ (LOCAL_RECURSIVE_TARGETS): New.
+ Add doc and pretty-check.
+ ($(LOCAL_RECURSIVE_TARGETS)): New (phony) target.
+
+2009-06-08 Roland Levillain <roland(a)lrde.epita.fr>
+
Install recursive regeneration rules in the top level.
* Makefile.am: Include build-aux/regen-recursive.mk.
diff --git a/Makefile.am b/Makefile.am
index 7f7153b..41f6861 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,15 +8,11 @@ if ENABLE_SWILENA
SUBDIRS += swilena
endif ENABLE_SWILENA
-.PHONY: doc pretty-check
-
-# Shortcut to generate the documentation from the top level.
-doc:
+# Target shortcuts delegating the actual action to milena/Makefile.
+LOCAL_RECURSIVE_TARGETS = doc pretty-check
+$(LOCAL_RECURSIVE_TARGETS):
cd milena && $(MAKE) $(AM_MAKEFLAGS) $@
-
-# Shortcut to launch the pretty check from the top level.
-pretty-check:
- cd milena/tests && $(MAKE) $(AM_MAKEFLAGS) $@
+.PHONY: $(LOCAL_RECURSIVE_TARGETS)
# Regen files recursively.
include $(top_srcdir)/build-aux/regen-recursive.mk
--
1.6.1.2
Show replies by date