aboutsummaryrefslogtreecommitdiff
path: root/paludis
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-01-17 12:14:38 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-01-17 12:16:56 -0800
commitab3bf63b75173ebf0fa3de6361ad4ae27f154894 (patch)
treebe45d7e5b5e57c821603a82331c2e0e576f3765b /paludis
parentcd722e33ba845a494ae19a6a45dfe4f60217a7a5 (diff)
downloadpaludis-ab3bf63b75173ebf0fa3de6361ad4ae27f154894.tar.gz
paludis-ab3bf63b75173ebf0fa3de6361ad4ae27f154894.tar.xz
build: support out-of-tree builds better
This adjusts the invocation of do_m4.bash to take two parameters, the m4 generator and the destination location. Doing so permits an out-of-tree build of paludis when the .m4 files are adjusted and the build needs to re-run the m4 files. While in the area, fix up a tiny bug with the generation of comparison_policy.hh.
Diffstat (limited to 'paludis')
-rw-r--r--paludis/Makefile.am.m46
-rw-r--r--paludis/util/Makefile.am.m44
2 files changed, 5 insertions, 5 deletions
diff --git a/paludis/Makefile.am.m4 b/paludis/Makefile.am.m4
index 72c1af18d..da050b41d 100644
--- a/paludis/Makefile.am.m4
+++ b/paludis/Makefile.am.m4
@@ -168,11 +168,11 @@ paludis_includedir = $(includedir)/paludis-$(PALUDIS_PC_SLOT)/paludis/
paludis_include_HEADERS = headerlist seheaderlist
Makefile.am : Makefile.am.m4 files.m4
- $(top_srcdir)/misc/do_m4.bash Makefile.am
+ $(top_srcdir)/misc/do_m4.bash $(abs_srcdir)/Makefile.am.m4 $(abs_builddir)/Makefile.am
paludis.hh : paludis.hh.m4 files.m4
- $(top_srcdir)/misc/do_m4.bash paludis.hh
+ $(top_srcdir)/misc/do_m4.bash $(abs_srcdir)/paludis.hh.m4 $(abs_builddir)/paludis.hh
comparison_policy.hh : comparison_policy.hh.m4
- $(top_srcdir)/misc/do_m4.bash comparison_policy.hh.m4
+ $(top_srcdir)/misc/do_m4.bash $(abs_srcdir)/comparison_policy.hh.m4 $(abs_builddir)/comparison_policy.hh
diff --git a/paludis/util/Makefile.am.m4 b/paludis/util/Makefile.am.m4
index bc4f550b4..36f82afe1 100644
--- a/paludis/util/Makefile.am.m4
+++ b/paludis/util/Makefile.am.m4
@@ -83,10 +83,10 @@ paludis_util_includedir = $(includedir)/paludis-$(PALUDIS_PC_SLOT)/paludis/util/
paludis_util_include_HEADERS = headerlist seheaderlist
Makefile.am : Makefile.am.m4 files.m4
- $(top_srcdir)/misc/do_m4.bash Makefile.am
+ $(top_srcdir)/misc/do_m4.bash $(abs_srcdir)/Makefile.am.m4 $(abs_builddir)/Makefile.am
util.hh : util.hh.m4 files.m4
- $(top_srcdir)/misc/do_m4.bash util.hh
+ $(top_srcdir)/misc/do_m4.bash $(abs_srcdir)/Makefile.am.m4 $(abs_builddir)/util.hh
libexecpaludisdir = $(libexecdir)/paludis
libexecpaludis_SCRIPTS = echo_functions.bash