diff --git a/Makefile b/Makefile index aadf8b1..5c752ea 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ BSTATIC := $(patsubst %,$(BUILDDIR)/%,$(STATIC)) all: build build: $(BUILDDIR)/index.html $(BSTATIC) -$(BUILDDIR)/index.html: $(DATADIR)/galleries.yaml $(MAKEPAGES) +$(BUILDDIR)/index.html: $(DATADIR)/index.yaml $(MAKEPAGES) echo "[index] "$@ mkdir -p $(dir $@) $(MAKEPAGES) $(MPFLAGS) index $< -o $@ @@ -69,13 +69,13 @@ $(MAKEPAGES): make-pages/*.hs make-pages/make-pages.cabal -exec cp {} $@ \; -$(TMPDIR)/galleries.mk: $(DATADIR)/galleries.yaml $(DATADIR) $(MAKEPAGES) +$(TMPDIR)/index.mk: $(DATADIR)/index.yaml $(DATADIR) $(MAKEPAGES) echo "[deps] "$@ mkdir -p $(dir $@) $(MAKEPAGES) $(MPFLAGS) depend-gallery $< -o $@ \ -B $(BUILDDIR) -D $(DATADIR) -T $(TMPDIR) -I $(INFONAME) --include $(TMPDIR)/galleries.mk +-include $(TMPDIR)/index.mk .PHONY: clean distclean