Restructure repository
37
Makefile
|
|
@ -1,37 +0,0 @@
|
||||||
# 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 lint-changelog install
|
|
||||||
|
|
||||||
libdir = "../bzlib"
|
|
||||||
libfiles = $(shell ls $(libdir)/*.lua | grep -o '[^/]*.lua')
|
|
||||||
pwd = $(shell pwd)
|
|
||||||
v = $(shell basename "$(pwd)")_$(shell jq -r .version info.json)
|
|
||||||
|
|
||||||
link:
|
|
||||||
for f in $(libfiles) ; do \
|
|
||||||
echo "using $(libdir)/$$f" ;\
|
|
||||||
cp $(libdir)/$$f .; \
|
|
||||||
done;
|
|
||||||
|
|
||||||
copy: link
|
|
||||||
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" -x "*.blend*"
|
|
||||||
|
|
||||||
install: lint-changelog copy
|
|
||||||
cp -f ../$(v).zip ../../mods/
|
|
||||||
|
|
||||||
lint-changelog: copy
|
|
||||||
python3 ../da-changelog-tools_0.0.14/changelog-checker.py --changelog ../$(v).zip
|
|
||||||
|
|
||||||
zorro:
|
|
||||||
python3 ../da-changelog-tools_0.0.14/changelog-checker.py --zorro --changelog ../$(v).zip
|
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 593 KiB After Width: | Height: | Size: 593 KiB |
|
Before Width: | Height: | Size: 641 KiB After Width: | Height: | Size: 641 KiB |
|
Before Width: | Height: | Size: 2.6 MiB After Width: | Height: | Size: 2.6 MiB |
|
Before Width: | Height: | Size: 2.5 MiB After Width: | Height: | Size: 2.5 MiB |
|
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 810 B |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 885 B After Width: | Height: | Size: 885 B |
|
Before Width: | Height: | Size: 450 KiB After Width: | Height: | Size: 450 KiB |
|
Before Width: | Height: | Size: 357 KiB After Width: | Height: | Size: 357 KiB |
|
Before Width: | Height: | Size: 2.5 MiB After Width: | Height: | Size: 2.5 MiB |
|
Before Width: | Height: | Size: 2.3 MiB After Width: | Height: | Size: 2.3 MiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 69 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 143 KiB After Width: | Height: | Size: 143 KiB |
|
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 146 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |