Clean before build, delete files from target
This commit is contained in:
parent
dcb2b919b2
commit
b838206f1e
1 changed files with 9 additions and 2 deletions
11
Makefile
11
Makefile
|
@ -3,9 +3,16 @@ DEST = /var/www/sites/fnordig.de/
|
|||
|
||||
build:
|
||||
cobalt build
|
||||
.PHONY: build
|
||||
|
||||
serve:
|
||||
cobalt watch
|
||||
.PHONY: serve
|
||||
|
||||
deploy: build
|
||||
rsync -va $(SOURCE) $(DEST)
|
||||
deploy: clean build
|
||||
rsync -va --delete $(SOURCE) $(DEST)
|
||||
.PHONY: deploy
|
||||
|
||||
clean:
|
||||
cobalt clean
|
||||
.PHONY: clean
|
||||
|
|
Loading…
Add table
Reference in a new issue