X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2FMakefile.am;h=3f07f2593df79b14cb37b97f87ed55f160e651f6;hb=875960df8c182d724db6921eb507847bd9b3919e;hp=b67d262bc7918b608c1003c063f737e9592490b9;hpb=351e30315a400ad45812afa7567719eef37139ff;p=lttng-tools.git diff --git a/include/Makefile.am b/include/Makefile.am index b67d262bc..3f07f2593 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -21,7 +21,7 @@ version.h: ## ## Check whether we are in a git repo. ## - git_describe="$$($(GIT_DESCRIBE_CMD) 2>/dev/null)"; \ + git_describe="`$(GIT_DESCRIBE_CMD) 2>/dev/null`"; \ if [ $$? -eq 0 ]; then \ git_version="$${git_describe}"; \ else \ @@ -45,7 +45,7 @@ version.h: old_version=$$($(GREP) "$${version_match}" "$${version_h}"); \ new_version="#define GIT_VERSION \"$${git_version}\""; \ if [ x"$${old_version}" != x"$${new_version}" ]; then \ - $(SED) -i "s'$${version_match}'$${new_version}'" "$${version_h}"; \ + $(SED) -i -e "s'$${version_match}'$${new_version}'" "$${version_h}"; \ else \ echo $(ECHO_N) " (cached)$(ECHO_C)"; \ fi; \ @@ -59,6 +59,8 @@ version.h: ## .PHONY: version.h +CLEANFILES = version.h + nodist_noinst_HEADERS = \ version.h