diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3,10 +3,16 @@ CCOPTS = -Wall -std=gnu99 out = upwgen PREFIX = /usr/bin +VERSION = 1 +PATCHLEVEL = 0 +EXTRAVERSION = + +VERSTR = "$(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL))$(EXTRAVERSION)" + all: @if [ ! -d obj ]; then mkdir obj; fi $(CC) $(CCOPTS) -c src/i18n_cat.c -o obj/i18n_cat.o - $(CC) $(CCOPTS) src/main.c obj/*.o -o $(out) + $(CC) $(CCOPTS) -DVERSTR=$(VERSTR) src/main.c obj/*.o -o $(out) install: mkdir -p $(DESTDIR)/$(PREFIX) |