foxygit / doom Log in
commit 51f665d6671d3f76137724d7722e8c0032169efd
Author:     Michael Day <contact@michaelcday.com>
AuthorDate: Sat Aug 20 15:32:22 2022 -0400
Commit:     Michael Day <contact@michaelcday.com>
CommitDate: Sat Aug 20 15:35:21 2022 -0400

    Generate *_icon.c files as part of build
---
 src/doom/Makefile.am    | 6 ++++++
 src/heretic/Makefile.am | 6 ++++++
 src/hexen/Makefile.am   | 6 ++++++
 src/strife/Makefile.am  | 6 ++++++
 4 files changed, 24 insertions(+)

diff --git a/src/doom/Makefile.am b/src/doom/Makefile.am
index 1b748077..1f4e8c48 100644
--- a/src/doom/Makefile.am
+++ b/src/doom/Makefile.am
@@ -75,3 +75,9 @@ st_lib.c           st_lib.h     \
 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
diff --git a/src/heretic/Makefile.am b/src/heretic/Makefile.am
index 0624b7a6..ac849d5e 100644
--- a/src/heretic/Makefile.am
+++ b/src/heretic/Makefile.am
@@ -64,3 +64,9 @@ sb_bar.c                                             \
 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
diff --git a/src/hexen/Makefile.am b/src/hexen/Makefile.am
index 37429951..bb6c59c8 100644
--- a/src/hexen/Makefile.am
+++ b/src/hexen/Makefile.am
@@ -62,3 +62,9 @@ sv_save.c                             \
                     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
diff --git a/src/strife/Makefile.am b/src/strife/Makefile.am
index c92d09b4..43075d23 100644
--- a/src/strife/Makefile.am
+++ b/src/strife/Makefile.am
@@ -77,3 +77,9 @@ st_lib.c           st_lib.h     \
 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