~steef/snixembed

a9cf3e23a5787de956c3d4fbbc4328ff7888108d — Steef Hegeman 4 years ago b994d83
makefile: do not require git

We will now only use git if .git/HEAD is found, otherwise the version
info is pulled from version.vala as is.
4 files changed, 5 insertions(+), 4 deletions(-)

M .gitignore
M README.md
M makefile
A version.vala
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";