2020-08-03 17:00:54 +00:00
|
|
|
configuration:
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Fixing config-base)
|
2020-08-03 17:00:54 +00:00
|
|
|
python3 config/fixconfig.py -i config/config-base.json -o data/config-base.json
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Generating config-default.ini)
|
2020-09-05 16:32:13 +00:00
|
|
|
python3 config/generate_ini.py -i config/config-base.json -o data/config-default.ini --version git
|
2020-08-03 17:00:54 +00:00
|
|
|
|
|
|
|
sass:
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Getting libsass)
|
2020-08-03 17:00:54 +00:00
|
|
|
python3 -m pip install libsass
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Getting node dependencies)
|
2020-08-03 17:00:54 +00:00
|
|
|
python3 scss/get_node_deps.py
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Compiling sass)
|
2020-08-03 17:00:54 +00:00
|
|
|
python3 scss/compile.py
|
|
|
|
|
2020-08-16 19:11:16 +00:00
|
|
|
sass-headless:
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Getting libsass)
|
2020-08-16 19:11:16 +00:00
|
|
|
python3 -m pip install libsass
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Getting node dependencies)
|
2020-08-16 19:11:16 +00:00
|
|
|
python3 scss/get_node_deps.py
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Compiling sass)
|
2020-08-16 19:11:16 +00:00
|
|
|
python3 scss/compile.py -y
|
|
|
|
|
|
|
|
mail-headless:
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Generating email html)
|
2020-08-16 19:11:16 +00:00
|
|
|
python3 mail/generate.py -y
|
|
|
|
|
2020-08-03 17:00:54 +00:00
|
|
|
mail:
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Generating email html)
|
2020-08-03 17:00:54 +00:00
|
|
|
python3 mail/generate.py
|
|
|
|
|
2020-09-21 21:03:20 +00:00
|
|
|
typescript:
|
|
|
|
$(info Compiling typescript)
|
|
|
|
-npx tsc -p ts/
|
|
|
|
|
2020-09-23 19:14:16 +00:00
|
|
|
ts-debug:
|
|
|
|
-npx tsc -p ts/ --sourceMap
|
|
|
|
cp -r ts data/static/
|
|
|
|
|
2020-08-31 13:57:42 +00:00
|
|
|
version:
|
2020-09-15 11:12:51 +00:00
|
|
|
python3 version.py auto version.go
|
2020-08-31 13:57:42 +00:00
|
|
|
|
2020-08-03 17:00:54 +00:00
|
|
|
compile:
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Downloading deps)
|
2020-08-03 17:00:54 +00:00
|
|
|
go mod download
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Building)
|
2020-08-03 17:00:54 +00:00
|
|
|
mkdir -p build
|
2020-09-02 19:06:02 +00:00
|
|
|
CGO_ENABLED=0 go build -o build/jfa-go *.go
|
|
|
|
|
|
|
|
compress:
|
|
|
|
upx --lzma build/jfa-go
|
2020-08-03 17:00:54 +00:00
|
|
|
|
|
|
|
copy:
|
2020-09-21 21:03:20 +00:00
|
|
|
$(info Copying data)
|
2020-08-03 17:00:54 +00:00
|
|
|
cp -r data build/
|
|
|
|
|
2020-08-19 11:10:34 +00:00
|
|
|
install:
|
|
|
|
cp -r build $(DESTDIR)/jfa-go
|
|
|
|
|
2020-09-21 21:03:20 +00:00
|
|
|
all: configuration sass mail version typescript compile copy
|
|
|
|
headless: configuration sass-headless mail-headless version typescript compile copy
|
2020-08-03 17:00:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
|