diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-25 15:05:56 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-11-25 15:17:16 +0000 |
commit | 962551a071da87589a97a2f40d72b87d6e6ba9e2 (patch) | |
tree | 163b02f38f6840ed35c6a01a5b0530973615a864 /mk/lib.mk | |
parent | 1a1d8b073a1d770c8de4f8eb274387b209b32782 (diff) |
Add a Makefile for the scripts directory
Diffstat (limited to 'mk/lib.mk')
-rw-r--r-- | mk/lib.mk | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -6,8 +6,14 @@ template_files += Makefile.config include Makefile.config +# Get rid of default suffixes. FIXME: is this a good idea? +.SUFFIXES: + + # Initialise some variables. QUIET = @ +bin_SCRIPTS := +noinst_SCRIPTS := # Pass -fPIC if we're building dynamic libraries. @@ -46,6 +52,9 @@ $(foreach mf, $(SUBS), $(eval $(call include-sub-makefile, $(mf)))) # Instantiate stuff. $(foreach lib, $(LIBS), $(eval $(call build-library,$(lib)))) $(foreach prog, $(PROGRAMS), $(eval $(call build-program,$(prog)))) +$(foreach script, $(bin_SCRIPTS), $(eval $(call install-program-in,$(script),$(bindir)))) +$(foreach script, $(bin_SCRIPTS), $(eval programs_list += $(script))) +$(foreach script, $(noinst_SCRIPTS), $(eval programs_list += $(script))) $(foreach template, $(template_files), $(eval $(call instantiate-template,$(template)))) |