diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-06-23 13:22:00 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-06-23 13:22:00 +0200 |
commit | 6f2a7949d5be4600a0d812db66e631bac85c11ee (patch) | |
tree | 9ab8ed05295df907ae4fbec5d9562181c3d34c00 /Makefile | |
parent | eaa925597d96f69141d42155928d649f4603bd07 (diff) |
Add --help/--version switches
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: |