Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Makefile « NesTiler - github.com/ClusterM/NesTiler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 75503e0f5f0ee4e166696d5bcfb674177a915911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Makefile to create some resources

COMMIT=$(shell git rev-parse --short HEAD)
COMMIT_RESOURCE=Resources/commit.txt
BUILDTIME_RESOURCE=Resources/buildtime.txt

all: commit buildtime

commit:
	echo -n $(COMMIT) > $(COMMIT_RESOURCE)
	git diff-index --quiet HEAD -- || echo -n " (dirty)" >> $(COMMIT_RESOURCE)

buildtime:
	date -u +"%s" > $(BUILDTIME_RESOURCE)