From b6203a2d4a3ebbd01afd822b538728246c452515 Mon Sep 17 00:00:00 2001 From: Rhiannon Morris Date: Sun, 19 Jul 2020 17:56:46 +0200 Subject: [PATCH] rebuild things when make-pages changes --- make-pages/Depend.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/make-pages/Depend.hs b/make-pages/Depend.hs index da1efba..1d449da 100644 --- a/make-pages/Depend.hs +++ b/make-pages/Depend.hs @@ -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 \