diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-22T15·59+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-22T15·59+0100 |
commit | 9a14d5e2f3a0b6ab626b9d22256df8bcc1c585a3 (patch) | |
tree | d34e17ee20a50afec1963ef1e709d83cb843d6bf /Makefile.lib | |
parent | ffdc85fc8afba0828bd1f300fdb4f68de99d7000 (diff) |
Automatically regenerate Makefile.config
And move some stuff around.
Diffstat (limited to 'Makefile.lib')
-rw-r--r-- | Makefile.lib | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/Makefile.lib b/Makefile.lib index 449f19ad506f..b6d31e7ce83b 100644 --- a/Makefile.lib +++ b/Makefile.lib @@ -1,6 +1,12 @@ -default: all +# Include Autoconf variables. +Makefile.config: Makefile.config.in + ./config.status + +include Makefile.config + +clean_list := +dist_files := -here = $(dir $(lastword $(MAKEFILE_LIST))) QUIET = @ @@ -34,6 +40,8 @@ define LIBS_template = dist_files += $$(_srcs) endef +$(foreach lib, $(LIBS), $(eval $(call LIBS_template,$(lib)))) + # Generate Make rules for programs. programs_list := @@ -58,10 +66,10 @@ define PROGRAMS_template = dist_files += $$(_srcs) endef +$(foreach prog, $(PROGRAMS), $(eval $(call PROGRAMS_template,$(prog)))) -# Distributing stuff. -dist_files := +# Distributing stuff. dist_name = $(PACKAGE_NAME)-$(PACKAGE_VERSION) dist: @@ -70,10 +78,12 @@ dist: # Cleaning stuff. -clean_list := clean: rm -fv $(clean_list) dryclean: @echo $(clean_list) + + +all: $(programs_list) |