Am Sonntag, 14. September 2014 02:28:28 UTC+2 schrieb Lex Trotman:
>
> On 14 September 2014 08:58, Michael-O <[email protected] <javascript:>> 
> 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? 
>
>
AsciiDoc doesn't copy them by default to the output dir by default. So I 
need to do it manually. The result will be deployed to a webserver. Unless 
you have a better idea, I haven't found a better solution for that.

-- 
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