]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/Makefile
Update ippeveprinter to use internal copy of printer.png.
[thirdparty/cups.git] / test / Makefile
index de9a541caf62c2bc7a52b9dedfeb247112c43f14..d2e047cb523ca431424df84d05203faa4936e3cc 100644 (file)
@@ -277,6 +277,18 @@ ipptool-static:    ipptool.o ../cups/$(LIBCUPSSTATIC)
        $(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
 
 
+#
+# printer-png.h
+#
+
+printer-png.h: printer.png
+       echo "Generating printer-png.h from printer.png..."
+       echo "static const unsigned char printer_png[] =" >printer-png.h
+       echo "{" >>printer-png.h
+       od -t x1 printer.png | cut -b12- | awk '{printf("  "); for (i = 1; i <= NF; i ++) printf("0x%s,", $$i); print "";}' >>printer-png.h
+       echo "};" >>printer-png.h
+
+
 #
 # Dependencies...
 #