SHELL = /bin/sh DESTDIR = $(BULK_DIR) TEMP_BULKDIR = $(DESTDIR)/tmp-bulkmake ZIP = bulk.zip # Let's build a careful list of files to include in the bulk file. # (We don't want any Makefiles, READMEs, or other debris.) ROOTFILES = abbrev.html begin.html faq.html \ glossary.html help.html history.html \ index-author.html index-names.html index-number.html index-similes.html \ index-subject.html index-sutta.html index-title.html index.html \ search.html # (note that we don't include the news files). # These are non-html files (shell scripts, etc.) GEEKWARE = \ tech/bbinclude/*\ tech/scripts/* INCLUDE = $(ROOTFILES) \ _atibulk.*.txt\ tipitaka/*.html\ tipitaka/*/*.html\ tipitaka/*/*/*.html\ css/*.css\ icon/*.gif icon/*.jpg icon/*.ico\ icon/flags/*.gif\ lib/*.html\ lib/study/*.html\ lib/study/aids/*.html\ lib/authors/*.html\ lib/authors/*/*.html\ lib/authors/*/images/*.gif\ lib/authors/*/images/*.jpg\ lib/authors/*/*/*.html\ lib/authors/*/*/images/*.gif\ lib/authors/*/*/images/*.jpg\ lib/thai/*.html lib/thai/*/*.html\ noncanon/*.html noncanon/*/*.html\ outsources/*.html\ ptf/*.html\ ptf/dhamma/*.html\ ptf/dhamma/dana/*.html ptf/dhamma/sila/*.html\ ptf/dhamma/sagga/*.html ptf/dhamma/nekkhamma/*.html\ ptf/dhamma/adinava/*.html ptf/dhamma/sacca/*.html\ ptf/dhamma/sacca/sacca?/*.html\ ptf/dhamma/sacca/sacca4/samma-*/*.html\ tech/*.html\ tech/*/*html\ $(GEEKWARE)\ # Prevent accidental execution of this makefile by intercepting the default all: @ echo Warning\! Use \'makebulk\' to run this makefile. @ echo Goodbye. # Update the zip file to include any changed files from the website $(ZIP): $(INCLUDE) @ zip -qu $(DESTDIR)/$(ZIP) $(INCLUDE) chmod a+r $(DESTDIR)/$(ZIP) kill: rm $(DESTDIR)/$(ZIP)