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
arne.babenhauserhe...@kit.edu

Karlsruher Institut für Technologie
IMK-ASF
Postfach 36 40
76021 Karlsruhe

Attachment: 0xA70DA09E.asc
Description: application/pgp-keys

<<attachment: arne_babenhauserheide.vcf>>

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to