aboutsummaryrefslogtreecommitdiff
path: root/programs.mk
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-04 11:02:49 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-02-04 11:02:49 +0100
commit0da82efa5d67ab1eb8b8cc066704d7f863451d5b (patch)
tree664c12d428f1e1b54649d87fb2206edc0a1518e3 /programs.mk
parent8468806552d6730abec6431c42b5b0e897c0222c (diff)
GNU Make 3.81 compatibility
3.81 doesn't understand the ‘define foo =’ syntax, which was added in 3.82. So use ‘define foo’ instead.
Diffstat (limited to 'programs.mk')
-rw-r--r--programs.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/programs.mk b/programs.mk
index 30539d129..74f2982a5 100644
--- a/programs.mk
+++ b/programs.mk
@@ -15,7 +15,7 @@ programs-list :=
#
# - $(1)_INSTALL_DIR: the directory where the program will be
# installed; defaults to $(bindir).
-define build-program =
+define build-program
_d := $$($(1)_DIR)
_srcs := $$(sort $$(foreach src, $$($(1)_SOURCES), $$(src)))
$(1)_OBJS := $$(addsuffix .o, $$(basename $$(_srcs)))