ref: 51f665d6671d3f76137724d7722e8c0032169efd
parent: c6b03a77a3d62ff96e164dd46f2cd43a6461ee62
author: Michael Day <[email protected]>
date: Sat Aug 20 11:32:22 EDT 2022
Generate *_icon.c files as part of build
--- a/src/doom/Makefile.am
+++ b/src/doom/Makefile.am
@@ -75,3 +75,9 @@
st_stuff.c st_stuff.h \
wi_stuff.c wi_stuff.h
+if HAVE_ICONS
+
+doom_icon.c : $(top_builddir)/data/doom.png
+ $(top_builddir)/data/convert-icon $(top_builddir)/data/doom.png $@
+
+endif
--- a/src/heretic/Makefile.am
+++ b/src/heretic/Makefile.am
@@ -64,3 +64,9 @@
sounds.c sounds.h \
s_sound.c s_sound.h
+if HAVE_ICONS
+
+heretic_icon.c : $(top_builddir)/data/heretic.png
+ $(top_builddir)/data/convert-icon $(top_builddir)/data/heretic.png $@
+
+endif
--- a/src/hexen/Makefile.am
+++ b/src/hexen/Makefile.am
@@ -62,3 +62,9 @@
textdefs.h \
xddefs.h
+if HAVE_ICONS
+
+hexen_icon.c : $(top_builddir)/data/hexen.png
+ $(top_builddir)/data/convert-icon $(top_builddir)/data/hexen.png $@
+
+endif
--- a/src/strife/Makefile.am
+++ b/src/strife/Makefile.am
@@ -77,3 +77,9 @@
st_stuff.c st_stuff.h \
wi_stuff.c wi_stuff.h
+if HAVE_ICONS
+
+strife_icon.c : $(top_builddir)/data/strife.png
+ $(top_builddir)/data/convert-icon $(top_builddir)/data/strife.png $@
+
+endif