about summary refs log tree commit diff
path: root/mk/lib.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-25T15·05+0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-25T15·17+0000
commit962551a071da87589a97a2f40d72b87d6e6ba9e2 (patch)
tree163b02f38f6840ed35c6a01a5b0530973615a864 /mk/lib.mk
parent1a1d8b073a1d770c8de4f8eb274387b209b32782 (diff)
Add a Makefile for the scripts directory
Diffstat (limited to 'mk/lib.mk')
-rw-r--r--mk/lib.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/mk/lib.mk b/mk/lib.mk
index b4a2fb265c3e..a1634bc002f9 100644
--- a/mk/lib.mk
+++ b/mk/lib.mk
@@ -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))))