summaryrefslogtreecommitdiff
path: root/Makefile
blob: d4eab9bebaedf535b48527c1ba6e6775152eaff9 (plain)
  1. SRCDIR ?= .
  2. STATICSRCDIR ?= $(SRCDIR)
  3. BUILDDIR ?= $(SRCDIR)
  4. DESTDIR ?= /home/arrrgh/public_html
  5. remotehost ?= example.org
  6. # Pull title, author and creationdate from this Markdown file
  7. metahintfile = $(SRCDIR)/chap0.mdwn)
  8. s5opts = -i
  9. # source docs
  10. s5file = $(SRCDIR)/ezgo.mdwn
  11. reportfiles = $(filter-out $(s5file), $(mdwnfiles))
  12. #reportfiles = $(patsubst %,$(SRCDIR)/chap%.mdwn,0 1 2 2a 2b 3 4 5)
  13. s5 = $(BUILDDIR)/index.html
  14. htmlreports = $(reportfiles:$(SRCDIR)/%.mdwn=$(BUILDDIR)/%.html)
  15. #htmlreports = $(BUILDDIR)/report.html
  16. #pdfreports = $(BUILDDIR)/report.pdf
  17. #extrafiles += $(patsubst %,$(BUILDDIR)/%.pdf,deps pkgdeps)
  18. #htmlcopyfiles = $(BUILDDIR)/map.png
  19. #pdfcopyfiles = $(BUILDDIR)/map.pdf
  20. #javacopyfiles = $(patsubst %,$(BUILDDIR)/map/%,freemindbrowser.jar index.html map.mm IBIS_MemberDB.zip)
  21. all: $(s5) $(htmlreports) $(pdfreports) $(javacopyfiles) $(extrafiles)
  22. install: all
  23. for f in $(installfiles:$(BUILDDIR)/%=%); do \
  24. install -d $(DESTDIR)/`dirname $$f`; \
  25. install -p -m u=rw,go=r,a-s -t $(DESTDIR)/`dirname $$f` $(BUILDDIR)/$$f; \
  26. done
  27. uninstall:
  28. rm -f $(installfiles:$(BUILDDIR)/%=$(DESTDIR)/%)
  29. clean:
  30. rm -f $(copyfiles) $(genfiles) $(filter-out $(maybecopyfiles),$(installfiles) $(noinstallfiles))
  31. rm -f $(pdfreports:=~)
  32. sync: install
  33. rsync -avH $(DESTDIR)/ $(remotehost):$(DESTDIR)/
  34. include make/pandoc.mk