add dot syntax

This commit is contained in:
Clément
2018-10-17 23:04:03 +02:00
parent 78551c4579
commit ca4735d3bc
11 changed files with 130 additions and 35 deletions

View File

@ -7,7 +7,7 @@ SCRIPT_DEST := $(SCRIPT_SRC:src/%=$(DIST_DIR)/%)
default: build
clean:
git clean -fXd
git clean -fXd -e !src/config.pug
install: node_modules copy_lib copy_samples submodules
@ -37,7 +37,7 @@ node_modules:
copy_lib:
@node copy_lib.js
# sample
# samples
copy_samples:
@cp -n src/config.sample.pug src/config.pug
@ -57,11 +57,16 @@ $(DIST_DIR)/%.js: src/%.js
@mkdir -p $(dir $@)
@node_modules/.bin/babel $< --out-file $@ --source-maps || touch $@
buildprod:
buildprod: build
export SDN="https://test-paris.happy-dev.fr"; \
$(MAKE) $(DIST_DIR)/index.html -B
deploy: pull install bluid
pull:
git pull
sync:
rsync -rv www/* staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/ --exclude=www/oidc-client-config.json
.PHONY: default install submodules copy_lib copy_samples build watch serve clean sync buildprod
.PHONY: default install submodules copy_lib copy_samples build watch serve clean sync buildprod pull deploy