summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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: