]> git.street.me.uk Git - andy/viking.git/blobdiff - src/icons/Makefile.am
Fix an incompatible make file rule (using "%"); this is complained by automake.
[andy/viking.git] / src / icons / Makefile.am
index 82691b49cb2386317498c320be6945731e964f93..a66944f7ceae86b482bde95392e4c5bd9ef5ba8f 100644 (file)
@@ -247,6 +247,12 @@ ALL_ICONS_HEADER = $(ALL_ICONS:.png=_pixmap.h)
 
 BUILT_SOURCES = $(ALL_ICONS_HEADER) icons.c icons.h
 CLEANFILES = $(BUILT_SOURCES)
+SUFFIXES = .png _pixmap.h
+
+.png_pixmap.h:
+       gdk-pixbuf-csource --name="`basename $< .png`_pixbuf" --struct --extern $< > $@
+       cat $@ | sed -e 's/\(pixel_data: ..\)/\1 (unsigned char \*)/' > temp$@.h
+       mv temp$@.h $@
 
 noinst_LIBRARIES = libicons.a
 libicons_a_SOURCES = icons.c icons.h
@@ -260,11 +266,6 @@ icons.c: $(ALL_ICONS_HEADER)
        echo "#include <gdk-pixbuf/gdk-pixdata.h>" >> $@
        for file in *_pixmap.h ; do echo "#include \"$$file\"" >> $@ ; done
 
-%_pixmap.h: %.png
-       gdk-pixbuf-csource --name="`basename $< .png`_pixbuf" --struct --extern $< > $@
-       cat $@ | sed -e 's/\(pixel_data: ..\)/\1 (unsigned char \*)/' > temp$@.h
-       mv temp$@.h $@
-
 $(BUILT_SOURCES): $(srcdir)/Makefile.am
 
 AM_CFLAGS       = -Wall -g -D_GNU_SOURCE \