Skip to content

Commit

Permalink
Merge pull request #201 from linuxunderground/use-printf
Browse files Browse the repository at this point in the history
use printf in Makefile
  • Loading branch information
yoe authored Apr 4, 2024
2 parents 8c44ebf + 6cf9165 commit 5eedc3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins_tools/eid-viewer/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ AM_CXXFLAGS = $(AM_CFLAGS) -std=c++98
SUBDIRS = . gtk/po test uml

resources/%.c: resources/%.png
echo -e "#include <gdk-pixbuf/gdk-pixdata.h>\n#if __GNUC__ >= 4\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wpointer-sign\"\n#endif\n" > $@
printf '%s\n' '#include <gdk-pixbuf/gdk-pixdata.h>' '#if __GNUC__ >= 4' '#pragma GCC diagnostic push' '#pragma GCC diagnostic ignored "-Wpointer-sign"' '#endif' > $@
gdk-pixbuf-csource --struct --extern --name `basename $^ .png` $^ >> $@
echo -e "#pragma GCC diagnostic pop\n" >> $@
printf '%s\n' '#pragma GCC diagnostic pop' >> $@
resources/%.c: resources/%.jpg
echo -e "#include <gdk-pixbuf/gdk-pixdata.h>\n#if __GNUC__ >= 4\n#pragma GCC diagnostic push\n#pragma GCC diagnostic ignored \"-Wpointer-sign\"\n#endif\n" > $@
printf '%s\n' '#include <gdk-pixbuf/gdk-pixdata.h>' '#if __GNUC__ >= 4' '#pragma GCC diagnostic push' '#pragma GCC diagnostic ignored "-Wpointer-sign"' '#endif' > $@
gdk-pixbuf-csource --struct --extern --name `basename $^ .jpg` $^ >> $@
echo -e "#pragma GCC diagnostic pop\n" >> $@
printf '%s\n' '#pragma GCC diagnostic pop' >> $@

BUILT_SOURCES = gtk/viewer_glade.h \
resources/coat_of_arms_nl.c \
Expand Down

0 comments on commit 5eedc3b

Please sign in to comment.