X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=Makefile;h=33b77c9d9fe564193a0c5c83c1237d1ee4b844a9;hb=0ba8455f6a972499ff71648ac65325be091bab33;hp=52e7270fd66a705fe4e8c9b87f89791c4406a55d;hpb=54c8801becfc2e0bc4cf965c1d62e6d75a262fe2;p=xonotic%2Fgmqcc.git diff --git a/Makefile b/Makefile index 52e7270..33b77c9 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,9 @@ MINGW = $(findstring MINGW32, $(UNAME)) CC ?= clang CFLAGS += -Wall -Wextra -I. -fno-strict-aliasing -fsigned-char -CFLAGS += -DGMQCC_GITINFO="`git describe`" +ifneq ($(shell git describe --always 2>/dev/null),) + CFLAGS += -DGMQCC_GITINFO="\"$(shell git describe --always)\"" +endif #turn on tons of warnings if clang is present # but also turn off the STUPID ONES ifeq ($(CC), clang) @@ -148,10 +150,8 @@ all: $(GMQCC) $(QCVM) $(TESTSUITE) check: all @ ./$(TESTSUITE) - -# alias to check because test.o exists and people will get confused -# about the undefined references to X. test: check + @ ./$(TESTSUITE) clean: rm -f *.o $(GMQCC) $(QCVM) $(TESTSUITE) *.dat