doc: use the new jimtcl syntax for 'expr'
[fw/openocd] / doc / Makefile.am
index e85ed75207f1eb5b31d7bb8da7051fcac1b1f4e1..67592038d50e3339ab74dfa0e1e6187a21af837c 100644 (file)
@@ -1,10 +1,11 @@
-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
+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