[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/7] build: move definition of 'all_programs' in cfg.mk
From: |
Stefano Lattarini |
Subject: |
[PATCH 1/7] build: move definition of 'all_programs' in cfg.mk |
Date: |
Thu, 30 Aug 2012 18:19:52 +0200 |
* Makefile.am: Move definition of target 'all_programs' from here ...
* cfg.mk: ... to here, which is the only file where it is used.
Signed-off-by: Stefano Lattarini <address@hidden>
---
Makefile.am | 4 ----
cfg.mk | 6 ++++++
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index d14bf88..673c964 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -170,9 +170,5 @@ check-git-hook-script-sync:
rm -rf $$t; \
test $$fail = 0
-.PHONY: all_programs
-all_programs:
- @cd ./src && $(MAKE) -s $@
-
include $(top_srcdir)/doc/local.mk
include $(top_srcdir)/man/local.mk
diff --git a/cfg.mk b/cfg.mk
index 50fb13e..35f1071 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -166,6 +166,12 @@ sc_long_lines:
sed -e "s|^|$$file:|" -e '$(FILTER_LONG_LINES)'; \
done | grep . && { msg="$$halt" $(_sc_say_and_exit) } || :
+# TODO: remove once the build system in 'src/' is merged with the
+# top-level one.
+.PHONY: all_programs
+all_programs:
+ @cd ./src && $(MAKE) -s $@
+
# Option descriptions should not start with a capital letter.
# One could grep source directly as follows:
# grep -E " {2,6}-.*[^.] [A-Z][a-z]" $$($(VC_LIST_EXCEPT) | grep '\.c$$')
- [PATCH 0/7] Minor cleanup and refactoring., Stefano Lattarini, 2012/08/30
- [PATCH 1/7] build: move definition of 'all_programs' in cfg.mk,
Stefano Lattarini <=
- [PATCH 2/7] build: some refactorings in cfg.mk, Stefano Lattarini, 2012/08/30
- [PATCH 5/7] maint: more uses of $(ASSORT), Stefano Lattarini, 2012/08/30
- [PATCH 4/7] maint: remove unused variable in src/Makefile.am, Stefano Lattarini, 2012/08/30
- [PATCH 7/7] maint: get rid of obsolete script 'cvsu', Stefano Lattarini, 2012/08/30
- [PATCH 6/7] build: don't use '$<' in non-suffix rules, Stefano Lattarini, 2012/08/30
- [PATCH 3/7] build: don't use foo_LDADD if there's no foo program, Stefano Lattarini, 2012/08/30
- Re: [PATCH 0/7] Minor cleanup and refactoring., Jim Meyering, 2012/08/31
- Re: [PATCH 0/7] Minor cleanup and refactoring., Jim Meyering, 2012/08/31