routeros-scripts/Makefile

17 lines
595 B
Makefile
Raw Normal View History

2018-09-03 14:19:23 +00:00
GENERATE = *.capsman *.local
all: $(GENERATE) README.html
2018-08-24 15:06:45 +00:00
README.html: README.md
markdown README.md > README.html
2018-07-10 12:01:41 +00:00
%.local: *.template Makefile
sed -e '/\/ caps-man/d' -e 's|%PATH%|interface wireless|' -e 's|%TEMPL%|$(suffix $@)|' \
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
< $(basename $@).template > $@
2018-07-10 12:01:41 +00:00
%.capsman: *.template Makefile
sed -e '/\/ interface wireless/d' -e 's/%PATH%/caps-man/' -e 's/%TEMPL%/$(suffix $@)/' \
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
< $(basename $@).template > $@