mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
include svnversion output in tarball
This commit is contained in:
parent
1d4c68d8d2
commit
489d59931c
1 changed files with 10 additions and 2 deletions
|
@ -29,10 +29,14 @@ SRC = xwrelay.cpp \
|
||||||
lstnrmgr.cpp \
|
lstnrmgr.cpp \
|
||||||
|
|
||||||
# STATIC ?= -static
|
# STATIC ?= -static
|
||||||
|
SVNINFO = svninfo.txt
|
||||||
|
|
||||||
|
|
||||||
OBJ = $(patsubst %.cpp,%.o,$(SRC))
|
OBJ = $(patsubst %.cpp,%.o,$(SRC))
|
||||||
LDFLAGS += -pthread -g -lmcheck $(STATIC)
|
LDFLAGS += -pthread -g -lmcheck $(STATIC)
|
||||||
CPPFLAGS += -DSPAWN_SELF -g -Wall -DSVN_REV=\"$(shell svnversion -n .)\"
|
CPPFLAGS += -DSPAWN_SELF -g -Wall \
|
||||||
|
-DSVN_REV=\"$(shell cat $(SVNINFO) 2>/dev/null || svnversion -n ..)\"
|
||||||
|
|
||||||
# turn on semaphore debugging
|
# turn on semaphore debugging
|
||||||
# CPPFLAGS += -DDEBUG_LOCKS
|
# CPPFLAGS += -DDEBUG_LOCKS
|
||||||
|
|
||||||
|
@ -47,10 +51,14 @@ tags:
|
||||||
etags *.cpp *.h
|
etags *.cpp *.h
|
||||||
|
|
||||||
tarball:
|
tarball:
|
||||||
|
@svnversion -n ../ > $(SVNINFO)
|
||||||
tar cvfz RELAY_SRC.tgz \
|
tar cvfz RELAY_SRC.tgz \
|
||||||
../relay/*.{cpp,h} \
|
../relay/*.{cpp,h} \
|
||||||
../relay/Makefile \
|
../relay/Makefile \
|
||||||
../relay/xwrelay.conf
|
../relay/xwrelay.conf \
|
||||||
|
../relay/$(SVNINFO)
|
||||||
|
@rm -f $(SVNINFO)
|
||||||
|
@echo "RELAY_SRC.tgz done"
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo $(MAKE) [STATIC=\"-static\"]
|
@echo $(MAKE) [STATIC=\"-static\"]
|
Loading…
Reference in a new issue