[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Managing Emacs org-mode projects with automake - how to make this easier
From: |
Arne Babenhauserheide (IMK) |
Subject: |
Managing Emacs org-mode projects with automake - how to make this easier? |
Date: |
Tue, 22 Oct 2013 17:14:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130816 Thunderbird/17.0.8 |
Dear Automake hackers,
I am using autotools to build org-mode projects and prepare them for
publication.
The nice part is that `make distcheck` does the hard work of checking
whether all the required parts are in the distribution.
The not so nice part is, though, that the Makefile.am looks quite messy.
Very messy in fact:
$ cat Makefile.am
vortrag = vortrag.pdf
vortrag_DATA = vortrag.org data.txt dist-tarball.png
vortragdir = .
EXTRA_DIST = ${vortrag_DATA} ${vortrag}
MOSTLYCLEANFILES = \\\#* *~ *.bak *.vrb *.bbl *.blg *_flymake.* #
kill editor backups and latex stuff
CLEANFILES = ${vortrag}
DISTCLEANFILES = ${CLEANFILES} \\\#* *~ *.bak *.vrb *.bbl *.blg
*_flymake.* auto/*el
all : ${vortrag}
${vortrag} : ${vortrag_DATA}
if test "$<" != "$(notdir $<)"; then cp -u "$<" "$(notdir $<)"; fi
echo yes | @emacs@ --batch --load "~/.emacs" --visit "$(notdir $<)"
--funcall org-beamer-export-to-pdf
if test "$<" != "$(notdir $<)"; then rm -f "$(notdir $<)"; rm -f
$(basename $(notdir $<)).tex $(basename $(notdir $<)).tex~
auto/$(basename $(notdir $<)).el; else rm -f $(basename $<).tex
$(basename $<).tex~ auto/$(basename $<).el; fi
Most of this is required to make distcheck happy.
Is there a way to make this cleaner?
Best wishes,
Arne
PS: I documented my usage of autotools on
http://draketo.de/light/english/free-software/makefile-to-autotools
--
Doktorand
Gruppe: GHG
Raum: 435/410
Tel.: +49 721 608-22885
address@hidden
Karlsruher Institut für Technologie
IMK-ASF
Postfach 36 40
76021 Karlsruhe
0xA70DA09E.asc
Description: application/pgp-keys
arne_babenhauserheide.vcf
Description: Vcard
signature.asc
Description: OpenPGP digital signature
- Managing Emacs org-mode projects with automake - how to make this easier?,
Arne Babenhauserheide (IMK) <=