aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-07-09 16:44:44 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-07-09 16:44:44 +0200
commitfe5386fbec298d8a0f588c5bc5c033d84b798bbd (patch)
tree7f595c869c532d1ef36655aeb88b858681d274b1 /Makefile
parent56e641a980a184b76914f8808793b7e952cdf76e (diff)
introduce templates for scripts depending on capsman or local wireless
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..23169cf
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+GENERATE = collect-wireless-mac.capsman collect-wireless-mac.local dhcp-lease-comment.capsman dhcp-lease-comment.local
+
+all: $(GENERATE)
+
+%.local: *.in Makefile
+ sed -e 's/%PATH%/interface wireless/' -e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' < $(basename $@).in > $@
+
+%.capsman: *.in Makefile
+ sed -e 's/%PATH%/caps-man/' -e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' < $(basename $@).in > $@