From d876f6f12b7719a5f477a6ccabb943a32be05755 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Tue, 12 Jul 2022 18:23:01 -0700 Subject: Include diff and diffstat from git. --- Makefile | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6a9baab..cb8b824 100644 --- a/Makefile +++ b/Makefile @@ -14,19 +14,6 @@ CXXFLAGS := -Wall -Werror -std=c++20 -fPIC -iquote . ${PKG_FLAGS} ${OPTIMIZE} ${ .DEFAULT_GOAL := all -VERSION := $(shell git describe --always --dirty --long --tags 2> /dev/null) -ifndef VERSION -VERSION := unknown -endif -$(info Version ${VERSION}) - -define GITTAGCPP = -#include "git-tag.h" - -const char *GIT_TAG = "$(subst ",\",${VERSION})"; -endef -export GITTAGCPP - ifneq ($(shell which ${IWYU}),) iwyu = ${CHRONIC} ${IWYU} -Xiwyu --error -Xiwyu --mapping_file=tools/iwyu.imp -Xiwyu --no_fwd_decls ${CXXFLAGS} $(1) else @@ -97,8 +84,6 @@ endif MAINOBJS := $(patsubst %.cpp,build/%.o,$(wildcard *.cpp)) MAINOBJS += build/git-tag.o -$(info ) - all: ${IWYU_CPPS} issim issim-static issim: build/issim-dynamic @@ -123,7 +108,7 @@ clean: build/git-tag.cpp: @mkdir -p $(dir $@) - @echo "$$GITTAGCPP" > $@ + @tools/mkgit.rb > $@ .PHONY: build/git-tag.cpp build/%.o: %.cpp -- cgit v1.2.3