-info_TEXINFOS = openocd.texi
-openocd_TEXINFOS = fdl.texi
-man_MANS = openocd.1
-EXTRA_DIST = openocd.1
+info_TEXINFOS += %D%/openocd.texi
+%C%_openocd_TEXINFOS = %D%/fdl.texi
-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
+dist_man_MANS += %D%/openocd.1
-MAINTAINERCLEANFILES = Makefile.in mdate-sh texinfo.tex
+EXTRA_DIST += %D%/manual
+
+MAINTAINERCLEANFILES += \
+ %D%/mdate-sh \
+ %D%/stamp-vti \
+ %D%/version.texi