rename makefiles to blah.mk

This commit is contained in:
Rhiannon Morris 2020-07-18 11:35:42 +02:00
parent 493f176ea1
commit 0ffebd2a00
2 changed files with 4 additions and 4 deletions

View File

@ -39,13 +39,13 @@ $(MAKEPAGES): make-pages/*.hs make-pages/make-pages.cabal
find dist-newstyle -name make-pages -executable -type f \
-exec cp {} $@ \;
$(TMPDIR)/galleries.d: $(DATADIR)/galleries.yaml $(DATADIR) $(MAKEPAGES)
$(TMPDIR)/galleries.mk: $(DATADIR)/galleries.yaml $(DATADIR) $(MAKEPAGES)
echo "[deps] "$@
mkdir -p $(dir $@)
$(MAKEPAGES) $(MPFLAGS) depend-gallery $< -o $@ \
-B $(BUILDDIR) -D $(DATADIR) -T $(TMPDIR) -I $(INFONAME)
-include $(TMPDIR)/galleries.d
-include $(TMPDIR)/galleries.mk
.PHONY: clean distclean
clean:

View File

@ -53,7 +53,7 @@ dependGallery' (GalleryInfo {title, prefix, filters}) infos' build data_ tmp =
pages' = unwords pages
path = build </> prefix </> "index.html"
rules = makeRules prefix filters build data_ tmp
inc d = tmp </> prefix </> takeDirectory d <.> "d"
inc d = tmp </> prefix </> takeDirectory d <.> "mk"
incs = if null infos then "" else
"include " <> fromString (unwords $ map inc files)
index = build </> "index.html"
@ -83,7 +83,7 @@ makeRules prefix filters build data_ tmp = [b|@0
mkdir -p $$(dir $$@)
$$(MAKEPAGES) $$(MPFLAGS) single "$$<" -o "$$@" $flags
$@tmpPrefix/%.d: $@data_/%/info.yaml
$@tmpPrefix/%.mk: $@data_/%/info.yaml
echo "[deps] "$$@
mkdir -p $$(dir $$@)
$$(MAKEPAGES) $$(MPFLAGS) depend-single $flags \