wmii/mk/wmii.mk
2009-09-17 09:27:11 -04:00

10 lines
328 B
Makefile

VERS = hg$$(hg identify -n)
VERS = hg$$(hg log -r $$(hg id 2>/dev/null | awk -F'[+ ]' '{print $$1}') --template '{rev}' 2>/dev/null)
VERSION = $(VERS)
VERSION := $(shell echo $(VERS))
VERSION != echo $(VERS)
CONFVERSION = -hg
COPYRIGHT = ©2009 Kris Maglione
CFLAGS += '-DVERSION=\"$(VERSION)\"' '-DCOPYRIGHT=\"$(COPYRIGHT)\"'