mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-04 18:25:11 +02:00
introduce templates for scripts depending on capsman or local wireless
This commit is contained in:
parent
56e641a980
commit
fe5386fbec
8 changed files with 180 additions and 7 deletions
9
Makefile
Normal file
9
Makefile
Normal 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 > $@
|
Loading…
Add table
Add a link
Reference in a new issue