summaryrefslogblamecommitdiffstats
path: root/hacks/images/Makefile
blob: 46aa4dc7b1b655b0b2dda81c75d2fdfb8f5dfd8b (plain) (tree)
1
2
3
4
5
                                                                                   



                                                                             














                                       

            


















                                                                         



                    

                                                                               
                 
                           
 

                                               










                  
# 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: