On 14 September 2014 08:58, Michael-O <[email protected]> wrote:
> Hi,
>
> I have a rather simple Makefile to build a document:
>
> ASCIIDOC_CONFDIR=/etc/asciidoc
>
> .PHONY: clean
>
> all: adoc
>
> adoc:
>     mkdir -p build
>     cp $(ASCIIDOC_CONFDIR)/stylesheets/asciidoc.css build/
>     cp $(ASCIIDOC_CONFDIR)/javascripts/asciidoc.js build/
>     cp -r $(ASCIIDOC_CONFDIR)/images/icons/ build/images/icons/
>     asciidoc -o build/index.html documentation.adoc
>
> clean:
>     rm -rf build
>
> The problem is that dependening on the system, ASCIIDOC_CONFDIR can be
> different. I want to replace that with
> ASCIIDOC_CONFDIR=$(shell asciidoc --conf-dir). This makes the Makefile
> portable.

Just use your favourite inline editor to strip the markup off:

asciidoc -s - <<<"{asciidoc-confdir}"

Though it begs the question why you are copying them, since asciidoc
will find them in the confdir itself anyway?

Cheers
Lex


>
> Thanks,
>
> Michael
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to