Compare commits
No commits in common. "fcd670d638af07253ffedb521cf0a77580b6dbed" and "f6953446b69862b526258f0e577cd03b3202e025" have entirely different histories.
fcd670d638
...
f6953446b6
32
Makefile
32
Makefile
@ -1,26 +1,7 @@
|
||||
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
|
||||
#
|
||||
# Manage website building
|
||||
#
|
||||
# Andrew Stryker <axs@sdf.org>
|
||||
#
|
||||
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
#
|
||||
# Configuration
|
||||
#
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
DEST ?= axs@sdf.org:html
|
||||
SITE_URL ?= https://axs.sdf.org
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
#
|
||||
# Define user interface
|
||||
#
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
.PHONY: default help publish build
|
||||
|
||||
default: build
|
||||
@ -28,7 +9,7 @@ default: build
|
||||
build: .build_sentinel #>
|
||||
|
||||
publish: build #> Publish site
|
||||
@echo "📰Publishing..."
|
||||
@echo "Publishing..."
|
||||
@# rsync options:
|
||||
@# verbose: show each operation
|
||||
@# links: preserve symlinks
|
||||
@ -36,7 +17,7 @@ publish: build #> Publish site
|
||||
@# times: preserve modification times
|
||||
@# delete: delete extraneous files, i.e., files on destination
|
||||
@# chmod: set permsions
|
||||
@echo "\t 📡 Copying from public to ${DEST}"
|
||||
@echo "\t ⛟ Copying from public to ${DEST}"
|
||||
@rsync \
|
||||
--verbose \
|
||||
--recursive \
|
||||
@ -53,12 +34,6 @@ publish: build #> Publish site
|
||||
@echo "✓ Publising complete"
|
||||
@echo "\nThe site should be available on ${SITE_URL}"
|
||||
|
||||
#-----------------------------------------------------------------------------#
|
||||
#
|
||||
# Define file interface
|
||||
#
|
||||
#-----------------------------------------------------------------------------#
|
||||
|
||||
.build_sentinel: $(wildcard content/*/*)
|
||||
@echo "\t 🏗️ Building site"
|
||||
@# We call hugo with two options:
|
||||
@ -66,6 +41,3 @@ publish: build #> Publish site
|
||||
@# --minify, to compress files my removing extra whitespace
|
||||
hugo --cleanDestinationDir --minify
|
||||
@touch $@
|
||||
@echo "✓ Building complete"
|
||||
|
||||
#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-#
|
||||
|
Loading…
Reference in New Issue
Block a user