Basic Makefile and infrastructure to support dist tarballs.

Borrowing slightly from git.git, derive a VERSION-FILE
from the current state of user's git working directory.
The VERSION is derived relative to the latest git annotated
tag object (using git-describe) and includable either in
shell scripts or in Makefiles.

The basic 'make dist' target generates a .tar.gz and a .zip
file named by the detected version.

Also include a basic clean target and dummy test target.

Signed-off-by: Emil Sit <sit@emilsit.net>
This commit is contained in:
Emil Sit
2009-03-22 08:10:38 -04:00
parent 31216fe365
commit ad40ef0f18
3 changed files with 72 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
VERSION-FILE