41 lines
649 B
Makefile
41 lines
649 B
Makefile
.PHONY: frontend
|
|
|
|
SAO=6.6.1
|
|
|
|
DBNAME=bij1
|
|
|
|
build: frontend
|
|
bash ./image.sh build
|
|
|
|
push:
|
|
bash ./image.sh push
|
|
|
|
install:
|
|
pdm install -d
|
|
pre-commit install
|
|
|
|
setup:
|
|
TRYTOND_DATABASE_URI=postgresql://localhost/$(DBNAME) trytond-admin -d $(DBNAME) --all --verbose
|
|
|
|
run:
|
|
supervisord
|
|
|
|
configure:
|
|
bin/bij1_setup
|
|
|
|
sync:
|
|
bin/bij1_airtable
|
|
|
|
frontend:
|
|
make -C frontend
|
|
|
|
frontend/package.json: downloads/sao-$(SAO).tar.bz2
|
|
cd frontend && tar --strip-components=1 -xjf ../downloads/sao-$(SAO).tar.bz2
|
|
|
|
downloads/sao-$(SAO).tar.bz2:
|
|
mkdir -p downloads
|
|
curl -o downloads/sao-$(SAO).tar.bz2 http://hg.tryton.org/sao/archive/$(SAO).tar.bz2
|
|
|
|
test:
|
|
py.test
|