rebuild things when make-pages changes

This commit is contained in:
Rhiannon Morris 2020-07-19 17:56:46 +02:00
parent 2d1a74ecb5
commit b6203a2d4a
1 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ dependSingle' yamlDir info prefix build nsfw =
deps = thumbFile (thumbnail info) : map pageFile paths ++ paths
deps' = unwords $ map (dir </>) deps
in
[b|$@index: $@deps'|]
[b|$@index: $@deps' $$(MAKEPAGES)|]
dependGallery :: GalleryInfo
-> [(FilePath, Info)] -- ^ relative to data dir
@ -59,7 +59,7 @@ dependGallery' (GalleryInfo {title, prefix, filters}) infos' build data_ tmp =
in [b|@0
$@index: $@path
$@path: $@pages' $@files'
$@path: $@pages' $@files' $@rss $$(MAKEPAGES)
echo "[gallery] "$$@
mkdir -p $$(dir $$@)
$$(MAKEPAGES) $$(MPFLAGS) gallery -t "$*title" $flags -o "$$@" \
@ -79,12 +79,12 @@ makeRules :: FilePath -- ^ prefix
-> FilePath -- ^ tmp dir
-> Builder
makeRules prefix filters build data_ tmp = [b|@0
$@buildPrefix/%/index.html: $@data_/%/info.yaml
$@buildPrefix/%/index.html: $@data_/%/info.yaml $$(MAKEPAGES)
echo "[single] "$$@
mkdir -p $$(dir $$@)
$$(MAKEPAGES) $$(MPFLAGS) single "$$<" -o "$$@" $flags
$@tmpPrefix/%.mk: $@data_/%/info.yaml
$@tmpPrefix/%.mk: $@data_/%/info.yaml $$(MAKEPAGES)
echo "[deps] "$$@
mkdir -p $$(dir $$@)
$$(MAKEPAGES) $$(MPFLAGS) depend-single $flags \