rename makefiles to blah.mk
This commit is contained in:
parent
493f176ea1
commit
0ffebd2a00
2 changed files with 4 additions and 4 deletions
4
Makefile
4
Makefile
|
@ -39,13 +39,13 @@ $(MAKEPAGES): make-pages/*.hs make-pages/make-pages.cabal
|
||||||
find dist-newstyle -name make-pages -executable -type f \
|
find dist-newstyle -name make-pages -executable -type f \
|
||||||
-exec cp {} $@ \;
|
-exec cp {} $@ \;
|
||||||
|
|
||||||
$(TMPDIR)/galleries.d: $(DATADIR)/galleries.yaml $(DATADIR) $(MAKEPAGES)
|
$(TMPDIR)/galleries.mk: $(DATADIR)/galleries.yaml $(DATADIR) $(MAKEPAGES)
|
||||||
echo "[deps] "$@
|
echo "[deps] "$@
|
||||||
mkdir -p $(dir $@)
|
mkdir -p $(dir $@)
|
||||||
$(MAKEPAGES) $(MPFLAGS) depend-gallery $< -o $@ \
|
$(MAKEPAGES) $(MPFLAGS) depend-gallery $< -o $@ \
|
||||||
-B $(BUILDDIR) -D $(DATADIR) -T $(TMPDIR) -I $(INFONAME)
|
-B $(BUILDDIR) -D $(DATADIR) -T $(TMPDIR) -I $(INFONAME)
|
||||||
|
|
||||||
-include $(TMPDIR)/galleries.d
|
-include $(TMPDIR)/galleries.mk
|
||||||
|
|
||||||
.PHONY: clean distclean
|
.PHONY: clean distclean
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -53,7 +53,7 @@ dependGallery' (GalleryInfo {title, prefix, filters}) infos' build data_ tmp =
|
||||||
pages' = unwords pages
|
pages' = unwords pages
|
||||||
path = build </> prefix </> "index.html"
|
path = build </> prefix </> "index.html"
|
||||||
rules = makeRules prefix filters build data_ tmp
|
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
|
incs = if null infos then "" else
|
||||||
"include " <> fromString (unwords $ map inc files)
|
"include " <> fromString (unwords $ map inc files)
|
||||||
index = build </> "index.html"
|
index = build </> "index.html"
|
||||||
|
@ -83,7 +83,7 @@ makeRules prefix filters build data_ tmp = [b|@0
|
||||||
mkdir -p $$(dir $$@)
|
mkdir -p $$(dir $$@)
|
||||||
$$(MAKEPAGES) $$(MPFLAGS) single "$$<" -o "$$@" $flags
|
$$(MAKEPAGES) $$(MPFLAGS) single "$$<" -o "$$@" $flags
|
||||||
|
|
||||||
$@tmpPrefix/%.d: $@data_/%/info.yaml
|
$@tmpPrefix/%.mk: $@data_/%/info.yaml
|
||||||
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