summaryrefslogtreecommitdiffstats
path: root/hacks/images/Makefile
blob: 46aa4dc7b1b655b0b2dda81c75d2fdfb8f5dfd8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# hacks/images/Makefile.in --- xscreensaver, Copyright © 2018-2021 Jamie Zawinski.
# the `../configure' script generates `hacks/images/Makefile' from this file.


srcdir		= .
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 \

default: all

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 *~ "#"*

list_tarfiles:
	@find $(TARFILES) -type f -print | sort

install:
install-program:
install-man:
install-strip:
uninstall:
uninstall-program:
uninstall-man:
depend:
distdepend:
tags: