From 1c962f73f5491933865d5b552503ab29bf283f23 Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Sat, 4 May 2013 11:59:42 +0200
Subject: [PATCH] Make use of single character variable syntax for the formal
parameter variable.
---
src/Makefile | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/Makefile b/src/Makefile
index 41909a6c2..e62886c73 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -60,14 +60,14 @@ endef
define OBJS_template
-$(1)_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $(1)/*.c))
+$1_OBJS := $$(patsubst %.c,../wrk/%.o,$$(wildcard $1/*.c))
-$$($(1)_OBJS): | ../wrk/$(1)
+$$($1_OBJS): | ../wrk/$1
-../wrk/$(1):
+../wrk/$1:
mkdir -p $$@
-DEPS += $$($(1)_OBJS:.o=.d)
+DEPS += $$($1_OBJS:.o=.d)
endef
@@ -75,12 +75,12 @@ endef
define PROG_template
-$$(eval $$(call OBJS_template,$(1)))
+$$(eval $$(call OBJS_template,$1))
-../bin/$(1): $$($(1)_OBJS) ../wrk/common/common.a | ../bin
+../bin/$1: $$($1_OBJS) ../wrk/common/common.a | ../bin
$$(CC) $$(LDFLAGS) -o $$@ $$^ $$(LDLIBS)
-$(1): ../bin/$(1)
+$1: ../bin/$1
endef
--
2.39.5