# Generated automatically from Makefile.in by configure. # Tim Vanderhoek # Makefile # Version 0.9.7.1, released August 19, 1997 # Copyright (c) 1997, Timothy M. Vanderhoek # RM= rm -f MKDIR= mkdir INSTALL= ./install-sh -c TEST= test # Only needed for bindist: target (ie. Win95 developers) ZIP= zip -j SH= sh BINDISTZIP= win-presi-0.7.0.zip prefix= /usr/local exec_prefix= /usr/local BINDIR= /usr/local/bin CARDDIR= /usr/local/share/games/tvp # Are we building xprez and libass? XPREZ= false LIBASS= true LIBAI= true all: prez_t xprez_t aprez_t # This is unclean. It should be done by configure.in # The idea is that we only want to trigger the remake-about targets in # prez, aprez, and xprez if there is a genuinely new ABOUT file (and not # one just regenerated by configure). ABOUT: _ABOUT.in cp _ABOUT ABOUT # Make the binary distribution for Win95% bindist: all ${RM} ${BINDISTZIP} ${ZIP} ${BINDISTZIP} aprez/aprez.exe prez/prez.exe ${ZIP} ${BINDISTZIP} docs/prez.txt docs/aprez.txt docs/president.txt ${ZIP} ${BINDISTZIP} xprez/xprez xprez/xpwish.exe ${ZIP} ${BINDISTZIP} /progra~1/cygnus/H-i386-cygwin32/bin/cygwin.dll ${ZIP} -r ${BINDISTZIP} xprez/cards ${ZIP} ${BINDISTZIP} /windows/system/cw3215.dll ${ZIP} ${BINDISTZIP} /windows/system/tcl76.dll ${ZIP} ${BINDISTZIP} /windows/system/tcl1676.dll ${ZIP} ${BINDISTZIP} /windows/system/tclpip76.dll ${ZIP} ${BINDISTZIP} /windows/system/tk42.dll @# WATCH-OUT!! Remove the ``demos'' folder, first!! ${ZIP} -r ${BINDISTZIP} /progra~1/tcl/lib/tk4.2 ${ZIP} ${BINDISTZIP} /progra~1/tcl/lib/tcl7.6/init.tcl #${ZIP} ${BINDISTZIP} /windows/system/tcl80.dll #${ZIP} ${BINDISTZIP} /windows/system/tclpip80.dll #${ZIP} ${BINDISTZIP} /windows/system/tk80.dll #${ZIP} ${BINDISTZIP} /progra~1/tcl8/lib/tcl8.0/init.tcl @# WATCH-OUT!! Remove the ``demos'' folder, first!! #${ZIP} -r ${BINDISTZIP} /progra~1/tcl8/lib/tk8.0 clean: @if $(LIBASS) ; then (cd libass ; $(MAKE) clean) ; fi @if $(LIBAI) ; then (cd libai ; $(MAKE) clean) ; fi @if $(XPREZ) ; then (cd xprez ; $(MAKE) clean); fi @(cd prez ; $(MAKE) clean) @(cd aprez ; $(MAKE) clean) @(cd rand ; $(MAKE) clean) $(RM) *.core auto_save.asg distclean: clean @if $(LIBASS) ; then (cd libass ; $(MAKE) distclean) ; fi @if $(LIBAI) ; then (cd libai ; $(MAKE) distclean) ; fi @if $(XPREZ) ; then (cd xprez ; $(MAKE) distclean) ; fi @(cd prez ; $(MAKE) distclean) @(cd aprez ; $(MAKE) distclean) @(cd rand ; $(MAKE) distclean) $(RM) config.status config.cache config.log $(RM) $(BINDISTZIP) $(RM) ABOUT realclean: distclean @if $(LIBASS) ; then (cd libass ; $(MAKE) realclean) ; fi @if $(LIBAI) ; then (cd libai ; $(MAKE) realclean) ; fi @if $(XPREZ) ; then (cd xprez ; $(MAKE) realclean) ; fi @(cd prez ; $(MAKE) realclean) @(cd aprez ; $(MAKE) realclean) @(cd rand ; $(MAKE) realclean) $(RM) Makefile _ABOUT libass_t: rand_t @if $(LIBASS) ; then (cd libass ; $(MAKE) all) ; fi libai_t: rand_t @if $(LIBAI) ; then (cd libai ; $(MAKE) all) ; fi prez_t: libass_t libai_t rand_t ABOUT @(cd prez ; $(MAKE) all) xprez_t: libass_t libai_t ABOUT @if $(XPREZ) ; then (cd xprez ; $(MAKE) all) ; fi aprez_t: libass_t libai_t ABOUT @(cd aprez ; $(MAKE) all) rand_t: @(cd rand ; $(MAKE) all) install: all @# ``prez'' on UNIX, ``prez.exe'' on Win95 @# Would be that much simpler if they were the same on each... @# We call INSTALL via sh to get around losing chmod a+x when @# switching between Winny and UNIX. $(MKDIR) -p $(BINDIR) sh $(INSTALL) prez/prez* $(BINDIR) if $(TEST) -x aprez/aprez.exe ; then \ sh $(INSTALL) aprez/aprez.exe $(BINDIR); \ else \ sh $(INSTALL) aprez/aprez $(BINDIR); \ fi if $(XPREZ); \ then \ true; \ if $(TEST) -x xprez/xpwish.exe ; then \ sh $(INSTALL) xprez/xpwish.exe $(BINDIR); \ else \ sh $(INSTALL) xprez/xpwish $(BINDIR); \ fi ; \ sh $(INSTALL) xprez/xprez $(BINDIR); \ $(MKDIR) -p $(CARDDIR); \ for zz in xprez/cards/*; do \ sh $(INSTALL) $$zz $(CARDDIR); \ done; \ fi crnlclean: distclean # This will only be used on UNIX # machines that want to lose the extra cr appended when # doing development under Windows. perl -pi -e 's/\r//' `find * ! -type d | rs`