M .gitignore => .gitignore +0 -1
@@ 1,3 1,2 @@
snixembed
-version.vala
doc
M README.md => README.md +0 -1
@@ 49,7 49,6 @@ for discussion and support. Come say hi!
## Building and installing
### Dependencies
-- git (make)
- make (make)
- vala (make)
- gtk+-3.0, gio-2.0, glib-2.0
M makefile => makefile +4 -2
@@ 12,8 12,10 @@ VFLAGS := $(foreach flag, $(CFLAGS), -X $(flag)) $(VFLAGS)
snixembed: $(SRC)
valac -o $@ $(VFLAGS) $(PKG) $(SRC)
-version.vala: .git/HEAD .git/index
+version.vala: # update version from git if possible
+ifneq (,$(wildcard ./.git/HEAD))
echo "const string VERSION = \"$(shell git describe --always --tags --dirty)\";" > $@
+endif
doc: $(SRC)
valadoc --force -o $@ --internal --private --package-name snixembed $(SRC) $(PKG)
@@ 27,4 29,4 @@ install: snixembed
uninstall:
rm -f $(DESTDIR)$(PREFIX)$(BINDIR)/snixembed
-.PHONY: clean install uninstall
+.PHONY: clean install uninstall version.vala
A version.vala => version.vala +1 -0
@@ 0,0 1,1 @@
+const string VERSION = "0.2.2";