aboutsummaryrefslogtreecommitdiffstats
path: root/txt/Makefile
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-06-11 16:24:50 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-06-17 10:49:15 +0100
commit97bff28959e9deed6b78dd7df974797476683006 (patch)
tree200cd4d5217676f91351a710df1b40e42d080c4d /txt/Makefile
parent32b98b8235bd3a4724ebdf9b475cd6c3ae3ce4c4 (diff)
downloadsyslinux-97bff28959e9deed6b78dd7df974797476683006.tar.gz
syslinux-97bff28959e9deed6b78dd7df974797476683006.tar.xz
syslinux-97bff28959e9deed6b78dd7df974797476683006.zip
txt: always rebuild necessary directories
Even if they're found in VPATH. This change ensures that txt/html is ignored in the source directory and that $(OBJ)/txt/html is always created in the output directory, avoiding the following error, asciidoc: FAILED: syslinux.txt: line 8: unexpected error: asciidoc: ------------------------------------------------------------ Traceback (most recent call last): File "/usr/bin/asciidoc", line 6016, in asciidoc writer.open(outfile, reader.bom) File "/usr/bin/asciidoc", line 4430, in open self.f = open(fname,'wb+') IOError: [Errno 2] No such file or directory: '/syslinux.git/efi64/txt/html/syslinux.html' Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'txt/Makefile')
-rw-r--r--txt/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/txt/Makefile b/txt/Makefile
index 0e4cfb45..2c75ab80 100644
--- a/txt/Makefile
+++ b/txt/Makefile
@@ -71,8 +71,11 @@ syslinux.cfg.txt: com-bug.txt com-rpt.txt
# %.html: %.txt
# asciidoc -D html $<
+# Mark as .PHONY so they're ignored if found in VPATH
+.PHONY: html/ man/ text/ xhtml/
+
html/ man/ text/ xhtml/:
- mkdir $@
+ mkdir -p $@
html/%.html: %.txt html/
asciidoc -o $@ $<