2018-09-03 16:19:23 +02:00
|
|
|
GENERATE = *.capsman *.local
|
2018-07-09 16:44:44 +02:00
|
|
|
|
2018-08-24 22:44:34 +02:00
|
|
|
all: $(GENERATE) README.html
|
2018-07-09 16:44:44 +02:00
|
|
|
|
2018-08-24 17:06:45 +02:00
|
|
|
README.html: README.md
|
|
|
|
markdown README.md > README.html
|
|
|
|
|
2018-07-10 14:01:41 +02: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-09 16:44:44 +02:00
|
|
|
|
2018-07-10 14:01:41 +02: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 > $@
|