summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index e85ed752..0b1318a6 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -6,5 +6,9 @@ EXTRA_DIST = openocd.1
dist-hook:
mkdir $(distdir)/manual
cp -p $(srcdir)/manual/*.txt $(distdir)/manual
+ for i in $$(cd $(srcdir)/manual/ && ls -d */); do \
+ mkdir $(distdir)/manual/$$i; \
+ cp -p $(srcdir)/manual/$$i/* $(distdir)/manual/$$i/; \
+ done
MAINTAINERCLEANFILES = Makefile.in mdate-sh texinfo.tex