rebuild things when make-pages changes
This commit is contained in:
parent
2d1a74ecb5
commit
b6203a2d4a
1 changed files with 4 additions and 4 deletions
|
@ -30,7 +30,7 @@ dependSingle' yamlDir info prefix build nsfw =
|
||||||
deps = thumbFile (thumbnail info) : map pageFile paths ++ paths
|
deps = thumbFile (thumbnail info) : map pageFile paths ++ paths
|
||||||
deps' = unwords $ map (dir </>) deps
|
deps' = unwords $ map (dir </>) deps
|
||||||
in
|
in
|
||||||
[b|$@index: $@deps'|]
|
[b|$@index: $@deps' $$(MAKEPAGES)|]
|
||||||
|
|
||||||
dependGallery :: GalleryInfo
|
dependGallery :: GalleryInfo
|
||||||
-> [(FilePath, Info)] -- ^ relative to data dir
|
-> [(FilePath, Info)] -- ^ relative to data dir
|
||||||
|
@ -59,7 +59,7 @@ dependGallery' (GalleryInfo {title, prefix, filters}) infos' build data_ tmp =
|
||||||
in [b|@0
|
in [b|@0
|
||||||
$@index: $@path
|
$@index: $@path
|
||||||
|
|
||||||
$@path: $@pages' $@files'
|
$@path: $@pages' $@files' $@rss $$(MAKEPAGES)
|
||||||
echo "[gallery] "$$@
|
echo "[gallery] "$$@
|
||||||
mkdir -p $$(dir $$@)
|
mkdir -p $$(dir $$@)
|
||||||
$$(MAKEPAGES) $$(MPFLAGS) gallery -t "$*title" $flags -o "$$@" \
|
$$(MAKEPAGES) $$(MPFLAGS) gallery -t "$*title" $flags -o "$$@" \
|
||||||
|
@ -79,12 +79,12 @@ makeRules :: FilePath -- ^ prefix
|
||||||
-> FilePath -- ^ tmp dir
|
-> FilePath -- ^ tmp dir
|
||||||
-> Builder
|
-> Builder
|
||||||
makeRules prefix filters build data_ tmp = [b|@0
|
makeRules prefix filters build data_ tmp = [b|@0
|
||||||
$@buildPrefix/%/index.html: $@data_/%/info.yaml
|
$@buildPrefix/%/index.html: $@data_/%/info.yaml $$(MAKEPAGES)
|
||||||
echo "[single] "$$@
|
echo "[single] "$$@
|
||||||
mkdir -p $$(dir $$@)
|
mkdir -p $$(dir $$@)
|
||||||
$$(MAKEPAGES) $$(MPFLAGS) single "$$<" -o "$$@" $flags
|
$$(MAKEPAGES) $$(MPFLAGS) single "$$<" -o "$$@" $flags
|
||||||
|
|
||||||
$@tmpPrefix/%.mk: $@data_/%/info.yaml
|
$@tmpPrefix/%.mk: $@data_/%/info.yaml $$(MAKEPAGES)
|
||||||
echo "[deps] "$$@
|
echo "[deps] "$$@
|
||||||
mkdir -p $$(dir $$@)
|
mkdir -p $$(dir $$@)
|
||||||
$$(MAKEPAGES) $$(MPFLAGS) depend-single $flags \
|
$$(MAKEPAGES) $$(MPFLAGS) depend-single $flags \
|
||||||
|
|
Loading…
Reference in a new issue