Makefile
This commit is contained in:
parent
6a0e75d614
commit
ebfca0fbb9
3 changed files with 31 additions and 4 deletions
26
Makefile
Normal file
26
Makefile
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Makefile for building and packaging the Sims 2 .s2pk CLI tool
|
||||
|
||||
APP_NAME = s2pk
|
||||
CONFIGURATION = Release
|
||||
RUNTIME_LINUX = linux-x64
|
||||
RUNTIME_MAC = osx-x64
|
||||
OUTPUT_DIR = ./dist
|
||||
|
||||
.PHONY: all clean build-linux build-mac package-linux package-mac
|
||||
|
||||
all: build-linux build-mac package-linux package-mac
|
||||
|
||||
clean:
|
||||
rm -rf bin obj $(OUTPUT_DIR)
|
||||
|
||||
build-linux:
|
||||
dotnet publish -c $(CONFIGURATION) -r $(RUNTIME_LINUX) --self-contained true /p:PublishSingleFile=true -o $(OUTPUT_DIR)/$(APP_NAME)-linux
|
||||
|
||||
build-mac:
|
||||
dotnet publish -c $(CONFIGURATION) -r $(RUNTIME_MAC) --self-contained true /p:PublishSingleFile=true -o $(OUTPUT_DIR)/$(APP_NAME)-mac
|
||||
|
||||
package-linux:
|
||||
tar -czvf $(OUTPUT_DIR)/$(APP_NAME)-linux.tar.gz -C $(OUTPUT_DIR)/$(APP_NAME)-linux .
|
||||
|
||||
package-mac:
|
||||
tar -czvf $(OUTPUT_DIR)/$(APP_NAME)-mac.tar.gz -C $(OUTPUT_DIR)/$(APP_NAME)-mac .
|
Loading…
Add table
Add a link
Reference in a new issue