add version and arch info to fused binary name
This commit is contained in:
parent
e5241d6c45
commit
7e13e1ca4f
1 changed files with 15 additions and 3 deletions
18
Makefile
18
Makefile
|
|
@ -1,5 +1,17 @@
|
||||||
|
VERSION=0.1
|
||||||
|
|
||||||
IGNORE_FLAGS=--ignore Makefile --ignore build
|
IGNORE_FLAGS=--ignore Makefile --ignore build
|
||||||
LOVE_PATH := $(shell command -v love)
|
LOVE_PATH := $(shell command -v love)
|
||||||
|
TARGET_NAME = $(shell arch)
|
||||||
|
FUSED_NAME = lines
|
||||||
|
|
||||||
|
ifdef VERSION
|
||||||
|
FUSED_NAME := $(FUSED_NAME)-v$(VERSION)
|
||||||
|
endif
|
||||||
|
ifdef TARGET_NAME
|
||||||
|
FUSED_NAME := $(FUSED_NAME)-$(TARGET_NAME)
|
||||||
|
endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@echo Available targets: love, fused, clean
|
@echo Available targets: love, fused, clean
|
||||||
|
|
||||||
|
|
@ -10,9 +22,9 @@ love: clean
|
||||||
|
|
||||||
fused: love
|
fused: love
|
||||||
ifdef LOVE_PATH
|
ifdef LOVE_PATH
|
||||||
cat ${LOVE_PATH} build/lines.love > build/lines
|
cat ${LOVE_PATH} build/lines.love > build/$(FUSED_NAME)
|
||||||
chmod +x build/lines
|
chmod +x build/$(FUSED_NAME)
|
||||||
@echo created fused binary lines in build directory
|
@echo created fused binary $(FUSED_NAME) in build directory
|
||||||
else
|
else
|
||||||
@echo love not found in PATH or LOVE_PATH
|
@echo love not found in PATH or LOVE_PATH
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue