]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix an incompatible make file rule (using "%"); this is complained by automake.
authorGuido Scholz <guido.scholz@bayernline.de>
Sun, 5 Aug 2012 15:36:45 +0000 (16:36 +0100)
committerRob Norris <rw_norris@hotmail.com>
Mon, 27 Aug 2012 11:04:56 +0000 (12:04 +0100)
The broken rule is substituted by proper new one.

Signed-off-by: Rob Norris <rw_norris@hotmail.com>
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 \