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