diff options
author | Christian Hesse <mail@eworm.de> | 2018-07-09 16:44:44 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-07-09 16:44:44 +0200 |
commit | fe5386fbec298d8a0f588c5bc5c033d84b798bbd (patch) | |
tree | 7f595c869c532d1ef36655aeb88b858681d274b1 /Makefile | |
parent | 56e641a980a184b76914f8808793b7e952cdf76e (diff) |
introduce templates for scripts depending on capsman or local wireless
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
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 > $@ |