You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
391 B
Makefile

.PHONY: all
all: setup build
.PHONY: setup
setup:
cp -n .env.dev .env
cp -n .env.dev server/.env
mkdir -p dist/
$(MAKE) -C server setup
$(MAKE) -C client setup
# rsync options: [a]rchive [c]hecksum [v]erbose [h]uman
.PHONY: build
build:
$(MAKE) -C server build
$(MAKE) -C client build
rsync -acvh server/bin/posti-dm dist/
rsync -acvh client/dist/ dist/
cp .env dist/.env