makefiles: support PREFIX and SYSCONFDIR

This commit is contained in:
Michael Stapelberg
2010-03-16 00:08:54 +01:00
parent 29c4ac9395
commit 1bce8f2104
4 changed files with 19 additions and 13 deletions

View File

@ -1,6 +1,12 @@
UNAME=$(shell uname)
DEBUG=1
INSTALL=install
PREFIX=/usr
ifeq ($(PREFIX),/usr)
SYSCONFDIR=/etc
else
SYSCONFDIR=$(PREFIX)/etc
endif
GIT_VERSION:="$(shell git describe --tags --always) ($(shell git log --pretty=format:%cd --date=short -n1))"
VERSION:=$(shell git describe --tags --abbrev=0)