Start organizing the Makefile
This commit is contained in:
parent
9192b8e17b
commit
5044f79cbe
19
Makefile
19
Makefile
@ -2,14 +2,11 @@
|
|||||||
DEST ?= axs@sdf.org:html
|
DEST ?= axs@sdf.org:html
|
||||||
SITE_URL ?= https://axs.sdf.org
|
SITE_URL ?= https://axs.sdf.org
|
||||||
|
|
||||||
.PHONY: default help publish
|
.PHONY: default help publish build
|
||||||
|
|
||||||
build: #>
|
default: build
|
||||||
@echo "\t 🏗️ Building site"
|
|
||||||
@# We call hugo with two options:
|
build: .build_sentinel #>
|
||||||
@# --cleanDestinationDir, to remove deleted files
|
|
||||||
@# --minify, to compress files my removing extra whitespace
|
|
||||||
hugo --cleanDestinationDir --minify
|
|
||||||
|
|
||||||
publish: build #> Publish site
|
publish: build #> Publish site
|
||||||
@echo "Publishing..."
|
@echo "Publishing..."
|
||||||
@ -36,3 +33,11 @@ publish: build #> Publish site
|
|||||||
@ssh axs@sdf.org 'mkhomepg -p'
|
@ssh axs@sdf.org 'mkhomepg -p'
|
||||||
@echo "✓ Publising complete"
|
@echo "✓ Publising complete"
|
||||||
@echo "\nThe site should be available on ${SITE_URL}"
|
@echo "\nThe site should be available on ${SITE_URL}"
|
||||||
|
|
||||||
|
.build_sentinel: $(wildcard content/*/*)
|
||||||
|
@echo "\t 🏗️ Building site"
|
||||||
|
@# We call hugo with two options:
|
||||||
|
@# --cleanDestinationDir, to remove deleted files
|
||||||
|
@# --minify, to compress files my removing extra whitespace
|
||||||
|
hugo --cleanDestinationDir --minify
|
||||||
|
@touch $@
|
||||||
|
Loading…
Reference in New Issue
Block a user