new: implement --version option
This commit is contained in:
7
Makefile
7
Makefile
@ -5,14 +5,19 @@ PO_SRCS = $(wildcard locale/*/*/*.po)
|
||||
PO_OUTS = $(patsubst locale/%.po,locale/%.mo,$(PO_SRCS))
|
||||
PO_DIRS = $(wildcard locale/*/*)
|
||||
|
||||
CFLAGS = -fstack-protector-strong -fcf-protection=full -fstack-clash-protection
|
||||
LIBS = -lncurses -lmenu -lm
|
||||
|
||||
prefix = /usr
|
||||
CC = gcc
|
||||
|
||||
VERSION = 24.08
|
||||
|
||||
all: dist/xcfg $(PO_OUTS)
|
||||
|
||||
dist/xcfg: $(CSRCS) $(HEADERS)
|
||||
mkdir -p dist
|
||||
$(CC) $(CFLAGS) $(CSRCS) -o $@ -lncurses -lmenu -lm
|
||||
$(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" $(CSRCS) -o $@ $(LIBS)
|
||||
|
||||
locale/%.mo: locale/%.po
|
||||
msgfmt $^ -o $@
|
||||
|
Reference in New Issue
Block a user