For some reason I have found that sometimes doc/help-pages-list
is zero bytes long. I don't know how this happens, but this
change should catch it and allow us to find out why.
$(top_srcdir)/doc/help-pages-list: $(UI_FILES)
$(AM_V_GEN)cat $^ | grep '"help[-_]page"' | \
$(SED) -e 's% *<property name="help[-_]page">\([^<]*\)</property>%//*[@id='"'"'\1'"'"']%' \
- -e 's%#%'"'"']/*[@id='"'"'%g' > $@
+ -e 's%#%'"'"']/*[@id='"'"'%g' > $@,tmp
+ test -s $@,tmp
+ mv $@,tmp $@
EXTRA_DIST += doc/help-pages-list