From 54af15cc5a4a6bdd3db69cd9062614cdeab1bdf5 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Mon, 3 Aug 2020 18:00:54 +0100 Subject: [PATCH] Added makefile Alternative to goreleaser. --- .gitignore | 1 + Makefile | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index b5ec37d..924bc9a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ data/*.html data/*.txt dist/* jfa-go +build/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..82f43c2 --- /dev/null +++ b/Makefile @@ -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 + + +