We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85540d4 commit aa76175Copy full SHA for aa76175
1 file changed
Makefile
@@ -1,4 +1,8 @@
1
TOPTARGETS := all clean dist
2
+AMSREV := $(shell git rev-parse --short HEAD)
3
+ifneq (, $(strip $(shell git status --porcelain 2>/dev/null)))
4
+ AMSREV := $(AMSREV)-dirty
5
+endif
6
7
all: fusee creport
8
fusee:
@@ -21,7 +25,7 @@ dist: fusee creport
21
25
$(eval MICROVER = $(shell grep '\ATMOSPHERE_RELEASE_VERSION_MICRO\b' common/include/atmosphere/version.h \
22
26
| tr -s [:blank:] \
23
27
| cut -d' ' -f3))
24
- $(eval AMSVER = $(MAJORVER).$(MINORVER).$(MICROVER))
28
+ $(eval AMSVER = $(MAJORVER).$(MINORVER).$(MICROVER)-$(AMSREV))
29
rm -rf atmosphere-$(AMSVER)
30
rm -rf out
31
mkdir atmosphere-$(AMSVER)
0 commit comments