#******************************************************************************
#
#       Copyright:      2005-2010 Paul Obermeier (obermeier@tcl3d.org)
#
#                       See the file "Tcl3D_License.txt" for information on
#                       usage and redistribution of this file, and for a
#                       DISCLAIMER OF ALL WARRANTIES.
#
#       Module:         Tcl3D -> tcl3dGauges
#       Filename:       Makefile
#
#       Author:         Paul Obermeier
#
#       Description:    Makefile for the tcl3dGauges subpackage.
#                       The syntax is based on GNU make.
#
#******************************************************************************

.PHONY: all install clean distclean

include ../make.oscheck
include ../make.macros

PKG_NAME = tcl3dGauges

all: gaugeImgs.tcl

install: all
	-$(MKDIR) $(TCL3D_INSTLIB)
	-$(MKDIR) $(TCL3D_INSTLIB)$(DSEP)$(PKG_NAME)
	$(CP) airspeed.tcl          $(TCL3D_INSTLIB)$(DSEP)$(PKG_NAME)
	$(CP) altimeter.tcl         $(TCL3D_INSTLIB)$(DSEP)$(PKG_NAME)
	$(CP) compass.tcl           $(TCL3D_INSTLIB)$(DSEP)$(PKG_NAME)
	$(CP) tiltmeter.tcl         $(TCL3D_INSTLIB)$(DSEP)$(PKG_NAME)
	$(CP) gaugeImgs.tcl         $(TCL3D_INSTLIB)$(DSEP)$(PKG_NAME)
	$(CP) gaugeBase64.tcl       $(TCL3D_INSTLIB)$(DSEP)$(PKG_NAME)
	$(CP) pkgIndex.tcl          $(TCL3D_INSTLIB)$(DSEP)$(PKG_NAME)
	$(CP) ..$(DSEP)pkgIndex.tcl $(TCL3D_INSTLIB)

clean:

distclean: clean
	-$(RM) gaugeImgs.tcl

gaugeImgs.tcl: img2pkg.tcl gaugeBase64.tcl
	$(TCLSH) img2pkg.tcl imgs > $@
