+default: mapsectorsh
+
###########################################################################
# Standard debian rules
@( \
version="$@"; version="$${version#$(CLOGDIR)/}"; \
from="$${version%-*}"; version="$${version#*-}"; to="$$version"; \
- if [ "$$from" == "$$to" ]; then from=""; fi; \
+ if [ "$$from" = "$$to" ]; then from=""; fi; \
release="unstable"; \
- if [ "$$version" == "HEAD" ]; then \
+ if [ "$$version" = "HEAD" ]; then \
version="`git describe --tag --match='v*' | sed -e 's/-/~/' -e 's/-/./g'`"; \
release="UNRELEASED"; \
fi; \
###########################################################################
###########################################################################
-prepare::
+prepare:: lib/00_version.sh
+lib/00_version.sh:
echo "version='`git describe --tag`'" >lib/00_version.sh
clean::
rm -f lib/00_version.sh
done; \
sed -n -e '2,/^load$$/p' $<; \
for script in $^; do \
- if [ "$$script" == "$<" ]; then continue; fi; \
+ if [ "$$script" = "$<" ]; then continue; fi; \
echo "#### $$script"; \
echo; \
cat $$script; \