# Copyright (c): Uwe Schmidt, FH Wedel # # You may study, modify and distribute this source code # FOR NON-COMMERCIAL PURPOSES ONLY. # This copyright message has to remain unchanged. # # Note that this document is provided 'as is', # WITHOUT WARRANTY of any kind either expressed or implied. SOURCES=linus.jpg tux.jpg dustpuppy.jpg GIFS=$(SOURCES:.jpg=.gif) GENJPGS=$(SOURCES:.jpg=_color.jpg) \ $(SOURCES:.jpg=_flip.jpg) \ $(SOURCES:.jpg=_flop.jpg) \ $(SOURCES:.jpg=_append.jpg) GENGIFS=$(SOURCES:.jpg=_trans.gif) .PHONY : all clean color gifs tar trans flip flop append all : gifs color trans flop flip append gifs : $(GIFS) color : $(SOURCES:.jpg=_color.jpg) trans : $(SOURCES:.jpg=_trans.gif) flop : $(SOURCES:.jpg=_flop.jpg) flip : $(SOURCES:.jpg=_flip.jpg) append : $(SOURCES:.jpg=_append.jpg) # default rules %.gif : %.jpg convert $< $@ %_color.jpg : %.jpg convert -colorize 0/0/50 $< $@ %_trans.gif : %.gif convert -transparent "#ffffff" $< $@ %_flop.jpg : %.jpg convert -flop $< $@ %_flip.jpg : %.jpg convert -flip $< $@ %_append.jpg : %_flip.jpg %_flop.jpg %_color.jpg convert +append \ $(@:_append.jpg=_flip.jpg) \ $(@:_append.jpg=_flop.jpg) \ $(@:_append.jpg=.jpg) \ $(@:_append.jpg=_color.jpg) $@ # cleanup clean : -rm -f $(GENGIFS) $(GIFS) $(GENJPGS)