1 VERSION
= luajson-
$(shell git describe
--abbrev
=4 HEAD
2>/dev
/null
)
3 DIST_TAR
= $(VERSION
).
tar
4 DIST_BZ2
= $(DIST_TAR
).bz2
5 DIST_GZ
= $(DIST_TAR
).gz
6 DIST_ZIP
= $(VERSION
).zip
8 .PHONY
: all clean dist distclean dist-bzip2 dist-gzip dist-tar dist-zip
14 @echo Cleaning nothing
- no binaries
16 all dist dist-all
: dist-tar dist-bzip2 dist-gzip dist-zip
26 dist-bzip2
: $(DIST_BZ2
)
33 cd ..
&& git archive
--format
=tar --prefix=$(VERSION
)/ HEAD .
-o
$(CURDIR
)/$@
35 $(DIST_BZ2
): $(DIST_TAR
)
36 bzip2
-9 -c
-f
$(DIST_TAR
) > $@
38 $(DIST_GZ
): $(DIST_TAR
)
39 gzip
-9 -c
-f
$(DIST_TAR
) > $@
42 cd ..
&& git archive
--format
=zip
--prefix=$(VERSION
)/ HEAD
: -o
$(CURDIR
)/$@