Update GNUmakefile, port from bemanitools.
This commit is contained in:
+9
-4
@@ -3,13 +3,18 @@ BUILDDIR ?= build
|
||||
|
||||
gitrev := $(shell git rev-parse HEAD)
|
||||
|
||||
all:
|
||||
# Generate a version file to identify the build
|
||||
@echo "$(gitrev)" > version
|
||||
all: print-building
|
||||
|
||||
.PHONY: clean
|
||||
.PHONY: clean print-building
|
||||
|
||||
print-building:
|
||||
@echo "Building gitrev "$(gitrev)"..."
|
||||
|
||||
clean:
|
||||
$(V)rm -rf $(BUILDDIR)
|
||||
|
||||
# Generate a version file to identify the build
|
||||
version:
|
||||
@echo "$(gitrev)" > version
|
||||
|
||||
include Module.mk
|
||||
|
||||
Reference in New Issue
Block a user