2020-08-03 17:00:54 +00:00
|
|
|
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
|
|
|
|
|
2020-08-16 19:11:16 +00:00
|
|
|
sass-headless:
|
|
|
|
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 -y
|
|
|
|
|
|
|
|
mail-headless:
|
|
|
|
echo "Generating email html"
|
|
|
|
python3 mail/generate.py -y
|
|
|
|
|
2020-08-03 17:00:54 +00:00
|
|
|
mail:
|
|
|
|
echo "Generating email html"
|
|
|
|
python3 mail/generate.py
|
|
|
|
|
2020-08-31 13:57:42 +00:00
|
|
|
version:
|
|
|
|
python3 version.py git version.go
|
|
|
|
|
2020-08-03 17:00:54 +00:00
|
|
|
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/
|
|
|
|
|
2020-08-19 11:10:34 +00:00
|
|
|
install:
|
|
|
|
cp -r build $(DESTDIR)/jfa-go
|
|
|
|
|
2020-08-31 13:57:42 +00:00
|
|
|
all: configuration sass mail version compile copy
|
|
|
|
headless: configuration sass-headless mail-headless version compile copy
|
2020-08-03 17:00:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|