summaryrefslogtreecommitdiffstats
path: root/hacks/images/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/images/Makefile')
-rw-r--r--hacks/images/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/hacks/images/Makefile b/hacks/images/Makefile
new file mode 100644
index 0000000..9f3d47c
--- /dev/null
+++ b/hacks/images/Makefile
@@ -0,0 +1,54 @@
+# hacks/images/Makefile.in --- xscreensaver, Copyright (c) 2018 Jamie Zawinski.
+# the `../configure' script generates `hacks/images/Makefile' from this file.
+
+
+srcdir = .
+VPATH = ${srcdir} ${srcdir}/bubbles ${srcdir}/m6502 \
+ ${srcdir}/molecules ${srcdir}/noseguy
+top_srcdir = ../..
+UTILS_SRC = $(top_srcdir)/utils
+RM = rm -f
+
+STAR = *
+TARFILES = Makefile \
+ Makefile.in \
+ $(STAR).png \
+ $(STAR).gif \
+ $(STAR)/$(STAR).png \
+ $(STAR)/$(STAR).asm \
+ $(STAR)/$(STAR).pdb \
+ $(STAR)/$(STAR).pov \
+ $(STAR)/$(STAR).txt \
+
+PNG_HDRS = $(shell find $(srcdir) -name \*.png | \
+ sed 's@^.*/\(.*\)\.\(png\)$$@gen/\1_\2.h@')
+
+default: all
+
+all: gen $(PNG_HDRS)
+
+gen:
+ mkdir gen
+
+# %.png dependency below works because VPATH contains subdirs
+# of 'images' dir not only 'images' itself
+gen/%_png.h: %.png
+ echo $(UTILS_SRC)/bin2c "$<" "$@"
+ $(UTILS_SRC)/bin2c "$<" "$@"
+
+clean:
+ $(RM) -r gen
+
+echo_tarfiles:
+ @echo $(TARFILES)
+
+install:
+install-program:
+install-man:
+install-strip:
+uninstall:
+uninstall-program:
+uninstall-man:
+depend:
+distdepend:
+tags: