diff options
author | Simon Rettberg | 2021-04-06 14:43:39 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-04-07 13:38:37 +0200 |
commit | 38886de0c3e9ea5729ef23e4c653fa2822f52e8f (patch) | |
tree | 9b799c8c968a92cc77746a95e0e8bdd90b6b13c3 /hacks/images | |
parent | Maybe not remove, but ... (diff) | |
download | xscreensaver-openslx.tar.gz xscreensaver-openslx.tar.xz xscreensaver-openslx.zip |
Diffstat (limited to 'hacks/images')
-rw-r--r-- | hacks/images/Makefile | 43 | ||||
-rw-r--r-- | hacks/images/Makefile.in | 43 | ||||
-rw-r--r-- | hacks/images/gnome1.png | bin | 0 -> 17901 bytes | |||
-rw-r--r-- | hacks/images/gnome2.png | bin | 0 -> 1867 bytes | |||
-rw-r--r-- | hacks/images/logo-360.png | bin | 0 -> 27394 bytes |
5 files changed, 50 insertions, 36 deletions
diff --git a/hacks/images/Makefile b/hacks/images/Makefile index 4b0a239..46aa4dc 100644 --- a/hacks/images/Makefile +++ b/hacks/images/Makefile @@ -1,10 +1,8 @@ -# hacks/images/Makefile.in --- xscreensaver, Copyright (c) 2018 Jamie Zawinski. +# hacks/images/Makefile.in --- xscreensaver, Copyright © 2018-2021 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 @@ -20,29 +18,38 @@ TARFILES = Makefile \ $(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 "$<" "$@" +all: _gen + +_gen: + @\ + DIR="gen" ; \ + if ! [ -d "$$DIR" ]; then \ + echo mkdir "$$DIR" ; \ + mkdir "$$DIR" ; \ + fi ; \ + \ + for png in $$(find $(srcdir) -name \*.png); do \ + h="$${png%.png}"; \ + h="$${h##*/}"; \ + h="$$DIR/$${h}_png.h"; \ + if [ ! -f "$$h" -o "$$png" -nt "$$h" ] ; then \ + echo $(UTILS_SRC)/bin2c "$$png" "$$h"; \ + $(UTILS_SRC)/bin2c "$$png" "$$h"; \ + fi ; \ + done clean: $(RM) -r gen +# Note: don't remove the generated Makefile. We include that in the tar file +# so that OSX and Android can run 'make' in this directory without 'configure'. distclean:: clean + -rm -f TAGS *~ "#"* -echo_tarfiles: - @echo $(TARFILES) +list_tarfiles: + @find $(TARFILES) -type f -print | sort install: install-program: diff --git a/hacks/images/Makefile.in b/hacks/images/Makefile.in index 9a0375b..6bdfbb0 100644 --- a/hacks/images/Makefile.in +++ b/hacks/images/Makefile.in @@ -1,10 +1,8 @@ -# hacks/images/Makefile.in --- xscreensaver, Copyright (c) 2018 Jamie Zawinski. +# hacks/images/Makefile.in --- xscreensaver, Copyright © 2018-2021 Jamie Zawinski. # the `../configure' script generates `hacks/images/Makefile' from this file. @SET_MAKE@ srcdir = @srcdir@ -VPATH = ${srcdir} ${srcdir}/bubbles ${srcdir}/m6502 \ - ${srcdir}/molecules ${srcdir}/noseguy top_srcdir = @top_srcdir@ UTILS_SRC = $(top_srcdir)/utils RM = rm -f @@ -20,29 +18,38 @@ TARFILES = Makefile \ $(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 "$<" "$@" +all: _gen + +_gen: + @\ + DIR="gen" ; \ + if ! [ -d "$$DIR" ]; then \ + echo mkdir "$$DIR" ; \ + mkdir "$$DIR" ; \ + fi ; \ + \ + for png in $$(find $(srcdir) -name \*.png); do \ + h="$${png%.png}"; \ + h="$${h##*/}"; \ + h="$$DIR/$${h}_png.h"; \ + if [ ! -f "$$h" -o "$$png" -nt "$$h" ] ; then \ + echo $(UTILS_SRC)/bin2c "$$png" "$$h"; \ + $(UTILS_SRC)/bin2c "$$png" "$$h"; \ + fi ; \ + done clean: $(RM) -r gen +# Note: don't remove the generated Makefile. We include that in the tar file +# so that OSX and Android can run 'make' in this directory without 'configure'. distclean:: clean + -rm -f TAGS *~ "#"* -echo_tarfiles: - @echo $(TARFILES) +list_tarfiles: + @find $(TARFILES) -type f -print | sort install: install-program: diff --git a/hacks/images/gnome1.png b/hacks/images/gnome1.png Binary files differnew file mode 100644 index 0000000..453e77a --- /dev/null +++ b/hacks/images/gnome1.png diff --git a/hacks/images/gnome2.png b/hacks/images/gnome2.png Binary files differnew file mode 100644 index 0000000..d9171d8 --- /dev/null +++ b/hacks/images/gnome2.png diff --git a/hacks/images/logo-360.png b/hacks/images/logo-360.png Binary files differnew file mode 100644 index 0000000..c4f1e89 --- /dev/null +++ b/hacks/images/logo-360.png |