# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # ROOT = .. SHELL = /bin/sh # # Icon image location, and PNG distribution file. # ICONS = ./Icons ICONZIP = Gtbicons.zip # # Demonstration directory. # DEMO = ./Demo # # Distribution file. # DISTFILE= gtoolbar.zip # # List of all image resources required. # IMAGES = PIC1 PIC2 PIC3 PIC4 PIC5 \ PIC6 PIC7 PIC8 PIC9 PIC10 PIC11 PIC12 PIC13 \ PIC14 PIC15 PIC16 PIC17 \ PIC18 PIC19 PIC20 PIC21 \ PIC22 PIC23 PIC24 PIC25 PIC26 PIC27 \ PIC28 PIC29 PIC30 PIC31 # # List of all image sources from the Icons directory. # IMGSRCS = $(ICONS)/sv.png $(ICONS)/sh.png $(ICONS)/si.png \ $(ICONS)/tb.png $(ICONS)/tf.png \ $(ICONS)/nw.png $(ICONS)/n.png $(ICONS)/ne.png $(ICONS)/w.png \ $(ICONS)/e.png $(ICONS)/sw.png $(ICONS)/s.png $(ICONS)/se.png \ $(ICONS)/up.png $(ICONS)/down.png $(ICONS)/in.png \ $(ICONS)/out.png $(ICONS)/look.png $(ICONS)/inventory.png \ $(ICONS)/wait.png $(ICONS)/again.png $(ICONS)/examine.png \ $(ICONS)/take.png $(ICONS)/drop.png $(ICONS)/open.png \ $(ICONS)/close.png $(ICONS)/read.png $(ICONS)/save.png \ $(ICONS)/restore.png $(ICONS)/restart.png $(ICONS)/quit.png # # Default make target. # default: all # # Copy image resources. # PIC1: $(ICONS)/sv.png cp $< $@ PIC2: $(ICONS)/sh.png cp $< $@ PIC3: $(ICONS)/si.png cp $< $@ PIC4: $(ICONS)/tn.png cp $< $@ PIC5: $(ICONS)/tp.png cp $< $@ PIC6: $(ICONS)/nw.png cp $< $@ PIC7: $(ICONS)/n.png cp $< $@ PIC8: $(ICONS)/ne.png cp $< $@ PIC9: $(ICONS)/w.png cp $< $@ PIC10: $(ICONS)/e.png cp $< $@ PIC11: $(ICONS)/sw.png cp $< $@ PIC12: $(ICONS)/s.png cp $< $@ PIC13: $(ICONS)/se.png cp $< $@ PIC14: $(ICONS)/up.png cp $< $@ PIC15: $(ICONS)/down.png cp $< $@ PIC16: $(ICONS)/in.png cp $< $@ PIC17: $(ICONS)/out.png cp $< $@ PIC18: $(ICONS)/look.png cp $< $@ PIC19: $(ICONS)/inventory.png cp $< $@ PIC20: $(ICONS)/wait.png cp $< $@ PIC21: $(ICONS)/again.png cp $< $@ PIC22: $(ICONS)/examine.png cp $< $@ PIC23: $(ICONS)/take.png cp $< $@ PIC24: $(ICONS)/drop.png cp $< $@ PIC25: $(ICONS)/open.png cp $< $@ PIC26: $(ICONS)/close.png cp $< $@ PIC27: $(ICONS)/read.png cp $< $@ PIC28: $(ICONS)/save.png cp $< $@ PIC29: $(ICONS)/restore.png cp $< $@ PIC30: $(ICONS)/restart.png cp $< $@ PIC31: $(ICONS)/quit.png cp $< $@ $(IMGSRCS): cd $(ICONS) && $(MAKE) all # # Build the ZIP file containing all the icon images. # all: $(ICONZIP) cd $(DEMO) && $(MAKE) all $(ICONZIP): $(IMAGES) zip -9 $(ICONZIP) $(IMAGES) rm -f PIC* clean: cd $(ICONS) && $(MAKE) clean cd $(DEMO) && $(MAKE) clean rm -f PIC* distclean: clean maintainer-clean: distclean rm -f $(ICONZIP) rm -f $(DISTFILE) # # Distribution target. # dist: $(MAKE) maintainer-clean $(ICONZIP) $(MAKE) distclean zip -9 -r $(DISTFILE) *