1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-23 01:20:11 +00:00
jfa-go/Makefile
Harvey Tindall 258656fbf9
version based on current tag for makefile
if there isnt a tag, version is 'git'. this fixes versioning for aur package and docker.
2020-09-15 12:12:51 +01:00

56 lines
1.2 KiB
Makefile

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 --version git
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
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
mail:
echo "Generating email html"
python3 mail/generate.py
version:
python3 version.py auto version.go
compile:
echo "Downloading deps"
go mod download
echo "Building"
mkdir -p build
CGO_ENABLED=0 go build -o build/jfa-go *.go
compress:
upx --lzma build/jfa-go
copy:
echo "Copying data"
cp -r data build/
install:
cp -r build $(DESTDIR)/jfa-go
all: configuration sass mail version compile copy
headless: configuration sass-headless mail-headless version compile copy