summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHector <hector.oron@gmail.com>2009-07-24 20:22:48 +0200
committerHector <hector.oron@gmail.com>2009-07-24 20:22:48 +0200
commit66701e342c5f2671f15ea251ac057e852d243c54 (patch)
tree4a6e84d09633074429fe4eef506d3010f83a4261 /Makefile
First import
Signed-off-by: Hector <hector.oron@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c9fcfaa
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,44 @@
+SRCDIR ?= .
+STATICSRCDIR ?= $(SRCDIR)
+BUILDDIR ?= $(SRCDIR)
+DESTDIR ?= /home/zumbi/public_html/docs
+
+remotehost ?= emdebian.org
+
+# Pull title, author and creationdate from this Markdown file
+metahintfile = $(SRCDIR)/chap0.mdwn)
+
+# source docs
+s5file = $(SRCDIR)/emdebian.mdwn
+#reportfiles = $(filter-out $(s5file), $(mdwnfiles))
+#reportfiles = $(patsubst %,$(SRCDIR)/chap%.mdwn,0 1 2 2a 2b 3 4 5)
+
+s5 = $(BUILDDIR)/index.html
+#htmlreports = $(BUILDDIR)/report.html
+#pdfreports = $(BUILDDIR)/report.pdf
+
+#extrafiles += $(BUILDDIR)/db-now.pdf
+
+#htmlcopyfiles = $(BUILDDIR)/map.png
+#pdfcopyfiles = $(BUILDDIR)/map.pdf
+#javacopyfiles = $(patsubst %,$(BUILDDIR)/map/%,freemindbrowser.jar index.html map.mm IBIS_MemberDB.zip)
+
+all: $(s5) $(htmlreports) $(pdfreports) $(javacopyfiles)
+
+install: all
+ for f in $(installfiles:$(BUILDDIR)/%=%); do \
+ install -d $(DESTDIR)/`dirname $$f`; \
+ install -p -m u=rw,go=r,a-s -t $(DESTDIR)/`dirname $$f` $(BUILDDIR)/$$f; \
+ done
+
+uninstall:
+ rm -f $(installfiles:$(BUILDDIR)/%=$(DESTDIR)/%)
+
+clean:
+ rm -f $(copyfiles) $(genfiles) $(filter-out $(maybecopyfiles),$(installfiles) $(noinstallfiles))
+ rm -f $(pdfreports:=~)
+
+sync: install
+ rsync -avH $(DESTDIR)/ $(remotehost):$(DESTDIR)/
+
+include make/pandoc.mk