mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
33 lines
580 B
Makefile
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)
|