From fe5386fbec298d8a0f588c5bc5c033d84b798bbd Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 9 Jul 2018 16:44:44 +0200 Subject: introduce templates for scripts depending on capsman or local wireless --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 > $@ -- cgit v1.2.3-70-g09d2