* scribo.mk, tests/tests.mk (AM_CPPFLAGS): Move...
* common.mk: ...here.
---
scribo/ChangeLog | 7 +++++++
scribo/common.mk | 4 ++++
scribo/scribo.mk | 3 ---
scribo/tests/tests.mk | 2 --
4 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 5cb33cb..ff69b44 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,12 @@
2010-04-22 Roland Levillain <roland(a)lrde.epita.fr>
+ Factor Makefiles' helpers.
+
+ * scribo.mk, tests/tests.mk (AM_CPPFLAGS): Move...
+ * common.mk: ...here.
+
+2010-04-22 Roland Levillain <roland(a)lrde.epita.fr>
+
Use AM_DEFAULT_SOURCE_EXT to simplify Scribo's Makefiles.
* common.mk: New.
diff --git a/scribo/common.mk b/scribo/common.mk
index 3623290..ef59d88 100644
--- a/scribo/common.mk
+++ b/scribo/common.mk
@@ -20,3 +20,7 @@
# C++ sources.
AM_DEFAULT_SOURCE_EXT = .cc
+
+# Add paths to Scribo's headers.
+AM_CPPFLAGS = -I$(top_srcdir)/ -I$(top_builddir)/ \
+ -I$(top_srcdir)/milena -I$(top_builddir)/milena
diff --git a/scribo/scribo.mk b/scribo/scribo.mk
index fde171a..87eac3e 100644
--- a/scribo/scribo.mk
+++ b/scribo/scribo.mk
@@ -16,7 +16,4 @@
include $(top_srcdir)/scribo/common.mk
-# Add path to Scribo's headers
-AM_CPPFLAGS = -I$(top_srcdir)/ -I$(top_builddir)/ -I$(top_srcdir)/milena
-I$(top_builddir)/milena
-
AM_CXXFLAGS = -DNDEBUG -O2
diff --git a/scribo/tests/tests.mk b/scribo/tests/tests.mk
index 1cf0ffe..44557f0 100644
--- a/scribo/tests/tests.mk
+++ b/scribo/tests/tests.mk
@@ -16,6 +16,4 @@
include $(top_srcdir)/scribo/common.mk
-AM_CPPFLAGS = -I$(top_srcdir)/ -I$(top_builddir)/ -I$(top_srcdir)/milena
-I$(top_builddir)/milena
-
AM_CXXFLAGS = -g -O0
--
1.5.6.5
Show replies by date