This repository has been archived by the owner on Nov 21, 2017. It is now read-only.
forked from bgirard/FactorioMod-Marathon
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fancy, improved Makefile. Updated changelog for 0.5.4
- Loading branch information
Showing
2 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
all: | ||
rm -rf build/ | ||
VERSION := 0.5.4 | ||
NAME := Marathon | ||
|
||
all: clean build | ||
|
||
build: | ||
mkdir build/ | ||
mkdir build/marathon_0.5.4 | ||
cp -R LICENSE README.md data.lua info.json prototypes migrations build/marathon_0.5.4 | ||
cd build && zip -r marathon_0.5.4.zip marathon_0.5.4 | ||
mkdir build/$(NAME)_$(VERSION) | ||
cp info.json info.json.temp | ||
sed -i -e 's/@VERSION@/$(VERSION)/' info.json | ||
cp -R LICENSE README.md data.lua info.json prototypes migrations build/$(NAME)_$(VERSION) | ||
cd build && zip -r $(NAME)_$(VERSION).zip $(NAME)_$(VERSION) | ||
mv info.json.temp info.json | ||
|
||
clean: | ||
rm -rf build/ |