ucg/docsite/Makefile
Jeremy Wall c20190e8e2 Add our documentation site using gutenberg and ucg.
* gutenberg generates the documentation site
* ucg configures the Google cloud storage bucket.
2018-11-17 17:51:18 -06:00

33 lines
580 B
Makefile

allyamls := $(shell find . -type f -name '*.yaml')
shared := $(wildcard ucglib/*.ucg)
bucketucgs := $(wildcard buckets/*.ucg)
%.yaml: %.ucg .libtarget
ucg build $<
# This ensures that we rebuild if the dependent ucglibs
# change.
.libtarget: $(shared)
touch .libtarget
build: bucketconfs gensite
bucketconfs: .libtarget $(patsubst %.ucg,%.yaml,$(bucketucgs))
all: build test
test:
ucg test -r
gensite:
cd site; \
gutenberg build -o generated
deploysite: gensite
cd site/; \
gsutil -m rsync -d -r generated gs://ucg.marzhillstudios.com/
clean:
rm -f $(allyamls)