introduce templates for scripts depending on capsman or local wireless

This commit is contained in:
Christian Hesse 2018-07-09 16:44:44 +02:00
parent 56e641a980
commit fe5386fbec
8 changed files with 180 additions and 7 deletions

9
Makefile Normal file
View file

@ -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 > $@