diff options
| author | Tony Garnock-Jones <tonygarnockjones@gmail.com> | 2010-04-06 09:55:58 +1200 |
|---|---|---|
| committer | Tony Garnock-Jones <tonygarnockjones@gmail.com> | 2010-04-06 09:55:58 +1200 |
| commit | 12fa85e5c300c05bf3865fa7335223bf486ff2c8 (patch) | |
| tree | 57c409d11d83f2a8edc2638087abeac53af9fa46 /Makefile | |
| parent | fe277b6c8edb6f9f9e578129108ae5c198d886a6 (diff) | |
| parent | f318a056c0c6999fe5d9d853440f4a49e92530b3 (diff) | |
| download | rabbitmq-server-git-12fa85e5c300c05bf3865fa7335223bf486ff2c8.tar.gz | |
Merge default into amqp_0_9_1
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -202,14 +202,20 @@ distclean: clean # xmlto can not read from standard input, so we mess with a tmp file. %.gz: %.xml $(DOCS_DIR)/examples-to-end.xsl xsltproc $(DOCS_DIR)/examples-to-end.xsl $< > $<.tmp && \ - xmlto man -o $(DOCS_DIR) $<.tmp && \ + xmlto man -o $(DOCS_DIR) --stringparam man.indent.verbatims=0 $<.tmp && \ gzip -f $(DOCS_DIR)/`basename $< .xml` rm -f $<.tmp +# Use tmp files rather than a pipeline so that we get meaningful errors +# Do not fold the cp into previous line, it's there to stop the file being +# generated but empty if we fail $(SOURCE_DIR)/%_usage.erl: xsltproc --stringparam modulename "`basename $@ .erl`" \ - $(DOCS_DIR)/usage.xsl $< | sed -e s/\\\"/\\\\\\\"/g | sed -e s/%QUOTE%/\\\"/g | \ - fold -s > $@ + $(DOCS_DIR)/usage.xsl $< > $@.tmp && \ + sed -e s/\\\"/\\\\\\\"/g -e s/%QUOTE%/\\\"/g $@.tmp > $@.tmp2 && \ + fold -s $@.tmp2 > $@.tmp3 && \ + cp $@.tmp3 $@ && \ + rm $@.tmp $@.tmp2 $@.tmp3 # We rename the file before xmlto sees it since xmlto will use the name of # the file to make internal links. @@ -265,6 +271,11 @@ else TESTABLEGOALS:=$(MAKECMDGOALS) endif +ifneq "$(strip $(TESTABLEGOALS))" "$(DEPS_FILE)" ifneq "$(strip $(patsubst clean%,,$(patsubst %clean,,$(TESTABLEGOALS))))" "" --include $(DEPS_FILE) +ifeq "$(strip $(wildcard $(DEPS_FILE)))" "" +$(info $(shell $(MAKE) $(DEPS_FILE))) +endif +include $(DEPS_FILE) +endif endif |
