summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-23 13:22:00 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-23 13:22:00 +0200
commit6f2a7949d5be4600a0d812db66e631bac85c11ee (patch)
tree9ab8ed05295df907ae4fbec5d9562181c3d34c00 /Makefile
parenteaa925597d96f69141d42155928d649f4603bd07 (diff)
Add --help/--version switches
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7ae094f..c50e596 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,14 @@
CFLAGS ?= -O2
PREFIX ?= /usr/local
+VERSION ?= 2.0.4-git
+
CFLAGS += -Wall -Wextra -pedantic
sysdir = ${DESTDIR}${PREFIX}
-all: bin/envstore
-
-bin/%: src/%.c
- ${CC} ${CFLAGS} ${LDFLAGS} -o $@ $<
+bin/envstore: src/envstore.c
+ ${CC} -DVERSION=\"${VERSION}\" ${CFLAGS} ${LDFLAGS} -o $@ $<
install: bin/envstore
@echo installing: