summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorHellekin O. Wolf =8) <[email protected]>2010-06-16 15:18:17 (GMT)
committer Hellekin O. Wolf =8) <[email protected]>2010-06-16 15:18:17 (GMT)
commit3b11c446012f76e3ad968416b62a1b29b0470a81 (patch)
treea9b49e633e1492d164e1a9a8f9a1ff1ffa08638f /Makefile.am
parent1afc10aa38b65b9d30c4b36451087d421a33fb20 (diff)
Restored build with interactive org-publish-project support
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am30
1 files changed, 5 insertions, 25 deletions
diff --git a/Makefile.am b/Makefile.am
index 614df2f..60d1168 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,29 +1,7 @@
SUBDIRS = etc src
-# FIXME: use automake settings
-docdir=doc
-orgdir=org
-srcdir=src
-builddir=pub
-
# FIXME: use a timestamp for builds: -newer $buildstamp
-ALL_ORG_FILES = $(shell find $docdir $orgdir -type f -name "*.org" -print 2>/dev/null)
-EXPORT_PAGES = $(echo $(ALL_ORG_FILES) | sed 's/.org/.html/g')
-EXPORT_PAGES += $(echo $(ALL_ORG_FILES) | sed 's/.org/.pdf/g')
-EXPORT_PAGES += $(echo $(ALL_ORG_FILES) | sed 's/.org/.txt/g')
-
-mkexport = emacs \
- -no-site-file -q -batch -l $(srcdir)/org-batch.el \
- --visit ${2/.*/.org} -f org-export-as-$1
-
-%.html : %.org
- $(call mkexport,html,$@) > $(builddir)/$(basename ${@/.*/.html})
-
-%.pdf : %.org
- $(call mkexport,pdf,$@) > $(builddir)/$(basename ${@/.*/.pdf})
-
-%.txt : %.org
- $(call mkexport,ascii,$@) > $(builddir)/$(basename ${@/.*/.txt})
+ORG_FILES = $(shell find doc org -type f -name "*.org" -print 2>/dev/null)
# FIXME: use awk-server, or check more dependencies such as a web server...
test:
@@ -41,7 +19,9 @@ test:
@echo "sudo kill `cat etc/apache/test.pid`"
@echo
-all: ${EXPORT_PAGES}
+all:
+ @mkdir pub
+ @emacs -batch -Q -l src/org-batch.el -f org-publish-project -- "autorg"
clean:
- rm -f $(builddir)/*.*
+ @rm -rf pub