Initial working version

This commit is contained in:
Brevven 2021-01-18 03:42:15 -08:00
parent 57813953d4
commit 4c4f13aadc
82 changed files with 893 additions and 0 deletions

24
Makefile Normal file
View file

@ -0,0 +1,24 @@
# General makefile for factorio mods.
#
# Presumes the development work is done in a <factoriodir>/dev/<modname>/
# directory where this makefile resides. This directory must be parallel to
# the <factoriodir>/mods/ directory where mods are installed. Run `make
# install` from dev/<modname> to install the mod as a zip file. That zip file
# should also be ready to upload to the mod portal
.PHONY: copy install
pwd = $(shell pwd)
v = $(shell basename "$(pwd)")_$(shell jq -r .version info.json)
copy:
rm -rf ../$(v)
mkdir -p ../$(v)
cp -rf * ../$(v)
rm -f ../$(v).zip
cd ..; zip -9 -r -y $(v).zip $(v) -x "*.xcf" -x "*.git*" -x "*.bak"
install: copy
cp -f ../$(v).zip ../../mods/