From 6f2a7949d5be4600a0d812db66e631bac85c11ee Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 23 Jun 2010 13:22:00 +0200 Subject: Add --help/--version switches --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') 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: -- cgit v1.2.3