# Marked as phony so it is regenerated on each call to make
lib/00_version.sh:
- echo "version='`git describe --tag`'" >lib/00_version.sh
+ echo "version='`git describe --tag`'" >lib/00_version.sh
clean::
- rm -f lib/00_version.sh
+ rm -f lib/00_version.sh
.PHONY: lib/00_version.sh
####################
# lib/00_version.sh explicitly since it might not yet exist
mapsectorsh: mapsector lib/00_version.sh $(wildcard lib/[0-9][0-9]_*.sh)
- @echo "generating $@"
- @( \
- sed -n -e '1p' $<; \
- echo "#"; \
- echo "# $@ automatically generated from"; \
- for script in $^; do \
- echo "# $$script"; \
- done; \
- sed -n -e '2,/^load$$/p' $<; \
- for script in $^; do \
- if [ "$$script" = "$<" ]; then continue; fi; \
- echo "#### $$script"; \
- echo; \
- cat $$script; \
- echo; \
- done; \
- sed -n -e '/^load$$/,$$p' $<; \
- ) >$@ || (rm -f $@; false)
- @sed -i -e 's/^load$$/####/' -eT -eh -eG -eH -eG -eH -eG -e'y/\n/#/' $@
- chmod ugo+rx $@
-clean::
- rm -f mapsectorsh
+ @echo "generating $@"
+ @( \
+ sed -n -e '1p' $<; \
+ echo "#"; \
+ echo "# $@ automatically generated from"; \
+ for script in $^; do \
+ echo "# $$script"; \
+ done; \
+ sed -n -e '2,/^load$$/p' $<; \
+ for script in $^; do \
+ if [ "$$script" = "$<" ]; then continue; fi; \
+ echo "#### $$script"; \
+ echo; \
+ cat $$script; \
+ echo; \
+ done; \
+ sed -n -e '/^load$$/,$$p' $<; \
+ ) >$@ || (rm -f $@; false)
+ @sed -i -e 's/^load$$/####/' -eT -eh -eG -eH -eG -eH -eG -e'y/\n/#/' $@
+ chmod ugo+rx $@
+ clean::
+ rm -f mapsectorsh