add makefile depend-single stuff

This commit is contained in:
Rhiannon Morris 2020-07-15 11:58:58 +02:00
parent d8f37d5d80
commit 0c187fff29

View file

@ -38,6 +38,13 @@ $(BUILDDIR)/nsfw/%/index.html: $(DATADIR)/%/info.yaml
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
@$(MAKEPAGES) single $< -o $@ -n @$(MAKEPAGES) single $< -o $@ -n
$(TMPDIR)/%.d: %.yaml
@echo "[deps] "$@
@mkdir -p $(dir $@)
@$(MAKEPAGES) depend-single $< -o $@
include $(TMPDIR)/$(YAMLS:.yaml=.d)
.PHONY: clean distclean .PHONY: clean distclean
clean: clean:
rm -rf $(BUILDDIR) $(TMPDIR) rm -rf $(BUILDDIR) $(TMPDIR)