This file is a list of all the icon files, but generating it doesn't use
icon files themselves, so depending on them isn't useful. On the other
hand, the file does need to be regenerated if the icon list changes, and
that icon list is in Smake itself, so this target does need to depend on
the Makefiles.
echo >> $@
-src/ui/gui/resources.xml: $(ICONS)
+src/ui/gui/resources.xml: $(MAKEFILE_LIST)
printf '<?xml version="1.0" encoding="UTF-8"?>\n' > $@
printf '<gresources>\n' >> $@
printf ' <gresource prefix="gnu/pspp">\n' >> $@
- for x in $^; do \
+ for x in $(ICONS); do \
z=`echo "$$x" | sed -e 's%src/ui/gui/%%'` ; \
printf " <file>$$z</file>\n" >> $@ ; \
done