rename galleries.yaml to index.yaml

This commit is contained in:
Rhiannon Morris 2020-07-19 12:08:44 +02:00
parent 02a09f3e5d
commit eecb750059

View file

@ -31,7 +31,7 @@ BSTATIC := $(patsubst %,$(BUILDDIR)/%,$(STATIC))
all: build all: build
build: $(BUILDDIR)/index.html $(BSTATIC) build: $(BUILDDIR)/index.html $(BSTATIC)
$(BUILDDIR)/index.html: $(DATADIR)/galleries.yaml $(MAKEPAGES) $(BUILDDIR)/index.html: $(DATADIR)/index.yaml $(MAKEPAGES)
echo "[index] "$@ echo "[index] "$@
mkdir -p $(dir $@) mkdir -p $(dir $@)
$(MAKEPAGES) $(MPFLAGS) index $< -o $@ $(MAKEPAGES) $(MPFLAGS) index $< -o $@
@ -69,13 +69,13 @@ $(MAKEPAGES): make-pages/*.hs make-pages/make-pages.cabal
-exec cp {} $@ \; -exec cp {} $@ \;
$(TMPDIR)/galleries.mk: $(DATADIR)/galleries.yaml $(DATADIR) $(MAKEPAGES) $(TMPDIR)/index.mk: $(DATADIR)/index.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.mk -include $(TMPDIR)/index.mk
.PHONY: clean distclean .PHONY: clean distclean