summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 731b5b0..5ac06a0 100644
--- a/Makefile
+++ b/Makefile
@@ -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)

Generated by cgit