Skip to content

Instantly share code, notes, and snippets.

@asv
Created February 14, 2012 04:05
Show Gist options
  • Save asv/1823466 to your computer and use it in GitHub Desktop.
Save asv/1823466 to your computer and use it in GitHub Desktop.
git version file into makefile
all::
.PHONY: GIT-VERSION-FILE
GIT-VERSION-FILE: FORCE
@$(SHELL_PATH) ./GIT-VERSION-GEN
-include GIT-VERSION-FILE
all::
@echo $(GIT_VERSION)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment