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.

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.

Reply via email to