################################################################################
# definitions
-VERSION := $(shell grep VERSION ChangeLog | head -1 | sed -e "s/VERSION //;s/\t.*//;s/ .*//")
+VERSNUM := $(shell grep VERSION ChangeLog | head -1 | sed -e "s/VERSION //;s/ .*//")
+VERSTAG := $(shell grep VERSION ChangeLog | head -1 | grep 'XX' > /dev/null 2> /dev/null && echo 'beta')
+VERSION = $(VERSNUM)$(VERSTAG)
PKG_NAME = platal
PKG_DIST = $(PKG_NAME)-$(VERSION)
jquery: htdocs/javascript/jquery.js htdocs/javascript/jquery.autocomplete.js
htdocs/javascript/jquery.js:
- wget http://jquery.com/src/jquery-latest.pack.js -O htdocs/javascript/jquery.js -q
+ wget http://jquery.com/src/jquery-latest.pack.js -O $@ -q || ($(RM) $@; exit 1)
################################################################################