1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

Added makefile

Alternative to goreleaser.
This commit is contained in:
Harvey Tindall 2020-08-03 18:00:54 +01:00
parent 8ed1662a2f
commit 54af15cc5a
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
2 changed files with 34 additions and 0 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ data/*.html
data/*.txt data/*.txt
dist/* dist/*
jfa-go jfa-go
build/

33
Makefile Normal file
View File

@ -0,0 +1,33 @@
configuration:
echo "Fixing config-base"
python3 config/fixconfig.py -i config/config-base.json -o data/config-base.json
echo "Generating config-default.ini"
python3 config/generate_ini.py -i config/config-base.json -o data/config-default.ini
sass:
echo "Getting libsass"
python3 -m pip install libsass
echo "Getting node dependencies"
python3 scss/get_node_deps.py
echo "Compiling sass"
python3 scss/compile.py
mail:
echo "Generating email html"
python3 mail/generate.py
compile:
echo "Downloading deps"
go mod download
echo "Building"
mkdir -p build
go build -o build/jfa-go *.go
copy:
echo "Copying data"
cp -r data build/
all: configuration sass mail compile copy