Am Sonntag, 14. September 2014 13:20:20 UTC+2 schrieb Lex Trotman: > > On 14 September 2014 20:34, Michael-O <[email protected] <javascript:>> > wrote: > > > > > > Am Sonntag, 14. September 2014 02:28:28 UTC+2 schrieb Lex Trotman: > >> > >> 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? > >> > > > > 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. > > > > Ok, if you link everything rather than embed it, which makes sense if > you have many more than the one doc in your example :) > > I do have only one right now but icons aren't embedded unless I use data-uris this isn't something I really want to do. Maybe we can improve asciiidoc in such a way that I copies all necessary ressources to the same output dir as the document unless overridden. What do you think?
Obviously, I am not the only one who is copying the files over and over again. -- 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.
