mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-08-19 02:56:40 +02:00
Add git hash to version info
This commit is contained in:
5
Makefile
5
Makefile
@@ -20,9 +20,10 @@
|
|||||||
|
|
||||||
# The following line (GLOBALCONF) is the only line you should need to edit!
|
# The following line (GLOBALCONF) is the only line you should need to edit!
|
||||||
GLOBALCONF = /usr/share/boxes
|
GLOBALCONF = /usr/share/boxes
|
||||||
|
GIT_STATUS = ($(shell git rev-parse --short HEAD)$(shell if [ $$(git status -s -uall | wc -l) -ge 1 ] ; then echo ", dirty" ; fi))
|
||||||
BVERSION = 1.2.1-SNAPSHOT
|
BVERSION = 1.2.1-SNAPSHOT
|
||||||
|
|
||||||
ALL_FILES = LICENSE README.md README.Win32.txt boxes-config
|
ALL_FILES = LICENSE README.md README.Win32.md boxes-config
|
||||||
DOC_FILES = doc/boxes.1 doc/boxes.el
|
DOC_FILES = doc/boxes.1 doc/boxes.el
|
||||||
PKG_NAME = boxes-$(BVERSION)
|
PKG_NAME = boxes-$(BVERSION)
|
||||||
|
|
||||||
@@ -46,7 +47,7 @@ infomsg:
|
|||||||
replaceinfos: src/boxes.h doc/boxes.1
|
replaceinfos: src/boxes.h doc/boxes.1
|
||||||
|
|
||||||
src/boxes.h: src/boxes.h.in src/regexp/regexp.h Makefile
|
src/boxes.h: src/boxes.h.in src/regexp/regexp.h Makefile
|
||||||
sed -e 's/--BVERSION--/$(BVERSION)/; s/--GLOBALCONF--/$(subst /,\/,$(GLOBALCONF))/' src/boxes.h.in > src/boxes.h
|
sed -e 's/--BVERSION--/$(BVERSION) $(GIT_STATUS)/; s/--GLOBALCONF--/$(subst /,\/,$(GLOBALCONF))/' src/boxes.h.in > src/boxes.h
|
||||||
|
|
||||||
doc/boxes.1: doc/boxes.1.in Makefile
|
doc/boxes.1: doc/boxes.1.in Makefile
|
||||||
sed -e 's/--BVERSION--/$(BVERSION)/; s/--GLOBALCONF--/$(subst /,\/,$(GLOBALCONF))/' doc/boxes.1.in > doc/boxes.1
|
sed -e 's/--BVERSION--/$(BVERSION)/; s/--GLOBALCONF--/$(subst /,\/,$(GLOBALCONF))/' doc/boxes.1.in > doc/boxes.1
|
||||||
|
@@ -48,11 +48,11 @@ debug: flags_$(BOXES_PLATFORM)
|
|||||||
boxes: $(ALL_OBJ)
|
boxes: $(ALL_OBJ)
|
||||||
$(MAKE) -C regexp CC=$(CC) libregexp.a
|
$(MAKE) -C regexp CC=$(CC) libregexp.a
|
||||||
$(CC) $(LDFLAGS) $(ALL_OBJ) -o $(BOXES_EXECUTABLE_NAME) -lregexp
|
$(CC) $(LDFLAGS) $(ALL_OBJ) -o $(BOXES_EXECUTABLE_NAME) -lregexp
|
||||||
if [ $(STRIP) == true ] ; then strip $(BOXES_EXECUTABLE_NAME) ; fi
|
if [ "$(STRIP)" = "true" ] ; then strip $(BOXES_EXECUTABLE_NAME) ; fi
|
||||||
|
|
||||||
boxes.exe: $(ALL_OBJ)
|
boxes.exe: $(ALL_OBJ)
|
||||||
$(CC) $(LDFLAGS) $(ALL_OBJ) -o $(BOXES_EXECUTABLE_NAME) -lkernel32
|
$(CC) $(LDFLAGS) $(ALL_OBJ) -o $(BOXES_EXECUTABLE_NAME) -lkernel32
|
||||||
if [ $(STRIP) == true ] ; then strip $(BOXES_EXECUTABLE_NAME) ; fi
|
if [ "$(STRIP)" = "true" ] ; then strip $(BOXES_EXECUTABLE_NAME) ; fi
|
||||||
|
|
||||||
|
|
||||||
flags_unix:
|
flags_unix:
|
||||||
|
Reference in New Issue
Block a user