# makefile for Gambit bin directory.

# Copyright (c) 1994-2018 by Marc Feeley, All Rights Reserved.

herefromroot = bin
rootfromhere = ..
SUBDIRS =

PACKAGE_SHORTNAME = @PACKAGE_SHORTNAME@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_TARNAME = @PACKAGE_TARNAME@

@SET_MAKE@

srcdir = @srcdir@
VPATH = @srcdir@
srcdirpfx = @srcdirpfx@

C_COMPILER = @C_COMPILER_MF@
C_PREPROC = @C_PREPROC_MF@
FLAGS_OBJ = @FLAGS_OBJ_MF@
FLAGS_DYN = @FLAGS_DYN_MF@
FLAGS_LIB = @FLAGS_LIB_MF@
FLAGS_EXE = @FLAGS_EXE_MF@
FLAGS_OPT = @FLAGS_OPT_MF@
FLAGS_OPT_RTS = @FLAGS_OPT_RTS_MF@
DEFS = @DEFS@
LIBS = @LIBS@

GAMBITLIB_DEFS = @GAMBITLIB_DEFS_MF@
LIB_PREFIX = @LIB_PREFIX@
LIB_VERSION_SUFFIX = @LIB_VERSION_SUFFIX@
LIB_MAJOR_VERSION_SUFFIX = @LIB_MAJOR_VERSION_SUFFIX@

LIB_EXTENSION = @LIB_EXTENSION@
GAMBITLIB = @GAMBITLIB@
GAMBITGSCLIB = @GAMBITGSCLIB@
GAMBITGSILIB = @GAMBITGSILIB@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_LIB = @INSTALL_LIB@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
LN_S = @LN_S@
RANLIB = @RANLIB@
AR = @AR@
RC = @RC@
GIT = @GIT@
HG = @HG@

prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
bindir = @bindir@
docdir = @docdir@
infodir = @infodir@
emacsdir = @emacsdir@
libexecdir = @libexecdir@
datarootdir = @datarootdir@
datadir = @datadir@
htmldir = @htmldir@
dvidir = @dvidir@
pdfdir = @pdfdir@
psdir = @psdir@
localedir = @localedir@
mandir = @mandir@

.SUFFIXES:

GSI_EXECUTABLE = gsi@exe@
GSC_EXECUTABLE = gsc@exe@
GSI_EXECUTABLE_INSTALLED = @ENABLE_INTERPRETER_NAME@@exe@
GSC_EXECUTABLE_INSTALLED = @ENABLE_COMPILER_NAME@@exe@

RCFILES = makefile.in \
gambcomp-C.unix.in gambcomp-C.bat.windows.in \
gambcomp-js.unix.in gambcomp-js.bat.windows.in \
gambcomp-python.unix.in gambcomp-python.bat.windows.in \
gambcomp-ruby.unix.in gambcomp-ruby.bat.windows.in \
gambcomp-php.unix.in gambcomp-php.bat.windows.in \
gambcomp-java.unix.in gambcomp-java.bat.windows.in \
gambdoc.unix.in gambdoc.bat.windows.in

GENDISTFILES =

DISTFILES = $(RCFILES) $(GENDISTFILES)

INSTFILES_BIN_PROG = gambcomp-C@bat@ gambcomp-js@bat@ gambcomp-python@bat@ gambcomp-ruby@bat@ gambcomp-php@bat@ gambcomp-java@bat@ gambdoc@bat@
INSTFILES_BIN_LINK_GSI = six@exe@ gsi-script@bat@ six-script@bat@ \
scheme-srfi-0@bat@ scheme-r5rs@bat@ scheme-r4rs@bat@ scheme-ieee-1178-1990@bat@
INSTFILES_BIN_LINK_GSC = gsc-script@bat@
INSTFILES_BIN_LINK = $(INSTFILES_BIN_LINK_GSI) $(INSTFILES_BIN_LINK_GSC)
INSTFILES_BIN = $(INSTFILES_BIN_PROG) $(INSTFILES_BIN_LINK)

all:

all-pre:

all-post: gambcomp-C@bat@ gambcomp-js@bat@ gambcomp-python@bat@ gambcomp-ruby@bat@ gambcomp-php@bat@ gambcomp-java@bat@ gambdoc@bat@ six@exe@ gsi-script@bat@ gsc-script@bat@ six-script@bat@ scheme-srfi-0@bat@ scheme-r5rs@bat@ scheme-r4rs@bat@ scheme-ieee-1178-1990@bat@

gambcomp-C@bat@: makefile gambcomp-C.unix gambcomp-C.bat.windows
	rm -f gambcomp-C@bat@
	if test "@bat@" = ""; then \
	  cp gambcomp-C.unix gambcomp-C@bat@; \
	  chmod +x gambcomp-C@bat@; \
	else \
	  cp gambcomp-C.bat.windows gambcomp-C@bat@; \
	fi

gambcomp-js@bat@: makefile gambcomp-js.unix gambcomp-js.bat.windows
	rm -f gambcomp-js@bat@
	if test "@bat@" = ""; then \
	  cp gambcomp-js.unix gambcomp-js@bat@; \
	  chmod +x gambcomp-js@bat@; \
	else \
	  cp gambcomp-js.bat.windows gambcomp-js@bat@; \
	fi

gambcomp-python@bat@: makefile gambcomp-python.unix gambcomp-python.bat.windows
	rm -f gambcomp-python@bat@
	if test "@bat@" = ""; then \
	  cp gambcomp-python.unix gambcomp-python@bat@; \
	  chmod +x gambcomp-python@bat@; \
	else \
	  cp gambcomp-python.bat.windows gambcomp-python@bat@; \
	fi

gambcomp-ruby@bat@: makefile gambcomp-ruby.unix gambcomp-ruby.bat.windows
	rm -f gambcomp-ruby@bat@
	if test "@bat@" = ""; then \
	  cp gambcomp-ruby.unix gambcomp-ruby@bat@; \
	  chmod +x gambcomp-ruby@bat@; \
	else \
	  cp gambcomp-ruby.bat.windows gambcomp-ruby@bat@; \
	fi

gambcomp-php@bat@: makefile gambcomp-php.unix gambcomp-php.bat.windows
	rm -f gambcomp-php@bat@
	if test "@bat@" = ""; then \
	  cp gambcomp-php.unix gambcomp-php@bat@; \
	  chmod +x gambcomp-php@bat@; \
	else \
	  cp gambcomp-php.bat.windows gambcomp-php@bat@; \
	fi

gambcomp-java@bat@: makefile gambcomp-java.unix gambcomp-java.bat.windows
	rm -f gambcomp-java@bat@
	if test "@bat@" = ""; then \
	  cp gambcomp-java.unix gambcomp-java@bat@; \
	  chmod +x gambcomp-java@bat@; \
	else \
	  cp gambcomp-java.bat.windows gambcomp-java@bat@; \
	fi

gambdoc@bat@: makefile gambdoc.unix gambdoc.bat.windows
	rm -f gambdoc@bat@
	if test "@bat@" = ""; then \
	  cp gambdoc.unix gambdoc@bat@; \
	  chmod +x gambdoc@bat@; \
	else \
	  cp gambdoc.bat.windows gambdoc@bat@; \
	fi

six@exe@: makefile
	rm -f six@exe@ six@exe@.lnk
	if test "@bat@" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/$(GSI_EXECUTABLE) six@exe@; \
	else \
	  cp $(rootfromhere)/gsi/$(GSI_EXECUTABLE) six@exe@; \
	fi

gsi-script@bat@: makefile
	rm -f gsi-script@bat@ gsi-script@bat@.lnk
	if test "@bat@" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/$(GSI_EXECUTABLE) gsi-script@bat@; \
	else \
	  echo "@gsi %*" > gsi-script@bat@; \
	fi

gsc-script@bat@: makefile
	rm -f gsc-script@bat@ gsc-script@bat@.lnk
	if test "@bat@" = ""; then \
	  $(LN_S) $(rootfromhere)/gsc/$(GSC_EXECUTABLE) gsc-script@bat@; \
	else \
	  echo "@gsc %*" > gsc-script@bat@; \
	fi

six-script@bat@: makefile
	rm -f six-script@bat@ six-script@bat@.lnk
	if test "@bat@" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/$(GSI_EXECUTABLE) six-script@bat@; \
	else \
	  echo "@gsi %*" > six-script@bat@; \
	fi

scheme-srfi-0@bat@: makefile
	rm -f scheme-srfi-0@bat@ scheme-srfi-0@bat@.lnk
	if test "@bat@" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/$(GSI_EXECUTABLE) scheme-srfi-0@bat@; \
	else \
	  echo "@gsi %*" > scheme-srfi-0@bat@; \
	fi

scheme-r5rs@bat@: makefile
	rm -f scheme-r5rs@bat@ scheme-r5rs@bat@.lnk
	if test "@bat@" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/$(GSI_EXECUTABLE) scheme-r5rs@bat@; \
	else \
	  echo "@gsi %*" > scheme-r5rs@bat@; \
	fi

scheme-r4rs@bat@: makefile
	rm -f scheme-r4rs@bat@ scheme-r4rs@bat@.lnk
	if test "@bat@" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/$(GSI_EXECUTABLE) scheme-r4rs@bat@; \
	else \
	  echo "@gsi %*" > scheme-r4rs@bat@; \
	fi

scheme-ieee-1178-1990@bat@: makefile
	rm -f scheme-ieee-1178-1990@bat@ scheme-ieee-1178-1990@bat@.lnk
	if test "@bat@" = ""; then \
	  $(LN_S) $(rootfromhere)/gsi/$(GSI_EXECUTABLE) scheme-ieee-1178-1990@bat@; \
	else \
	  echo "@gsi %*" > scheme-ieee-1178-1990@bat@; \
	fi

bootstrap-pre:

bootstrap-post:

install-pre:

install-post: all
	c_bindir="$(DESTDIR)$(prefix)/bin"; \
	i_bindir="$(DESTDIR)$(bindir)"; \
	t_bindir="$$i_bindir"; \
	$(srcdirpfx)$(rootfromhere)/mkidirs "$$i_bindir"; \
	if test "@ENABLE_SYMLINKS@" = "yes"; then \
	  $(srcdirpfx)$(rootfromhere)/mkidirs "$$c_bindir"; \
	  t_bindir="$$c_bindir"; \
	fi; \
	for file in $(INSTFILES_BIN_LINK); do \
	  rm -f "$$t_bindir/$$file" "$$t_bindir/$$file.lnk"; \
	done; \
	for file in $(INSTFILES_BIN_PROG); do \
	  $(INSTALL_PROGRAM) "$$file" "$$t_bindir/$$file"; \
	done; \
	if test "@bat@" = ""; then \
	  for file in $(INSTFILES_BIN_LINK_GSI); do \
	    (cd "$$t_bindir" && $(LN_S) "$(GSI_EXECUTABLE_INSTALLED)" "$$file"); \
	  done; \
	  for file in $(INSTFILES_BIN_LINK_GSC); do \
	    (cd "$$t_bindir" && $(LN_S) "$(GSC_EXECUTABLE_INSTALLED)" "$$file"); \
	  done; \
	else \
	  for file in $(INSTFILES_BIN_LINK); do \
	    $(INSTALL_PROGRAM) "$$file" "$$t_bindir/$$file"; \
	  done; \
	fi; \
	if test "$$t_bindir" != "$$i_bindir"; then \
	  r_bindir=`$(rootfromhere)/relpath "$$t_bindir" "$$i_bindir" @ENABLE_MULTIPLE_VERSIONS@`; \
	  for file in $(INSTFILES_BIN_LINK); do \
	    rm -f "$$i_bindir/$$file" "$$i_bindir/$$file.lnk"; \
	  done; \
	  for file in $(INSTFILES_BIN); do \
	    (cd "$$i_bindir" && $(LN_S) "$$r_bindir$$file" "$$file"); \
	  done; \
	fi

uninstall-pre:

uninstall-post:
	c_bindir="$(DESTDIR)$(prefix)/bin"; \
	i_bindir="$(DESTDIR)$(bindir)"; \
	t_bindir="$$i_bindir"; \
	$(srcdirpfx)$(rootfromhere)/mkidirs "$$i_bindir"; \
	if test "@ENABLE_SYMLINKS@" = "yes"; then \
	  $(srcdirpfx)$(rootfromhere)/mkidirs "$$c_bindir"; \
	  t_bindir="$$c_bindir"; \
	fi; \
	for file in $(INSTFILES_BIN_LINK); do \
	  rm -f "$$t_bindir/$$file" "$$t_bindir/$$file.lnk"; \
	done; \
	for file in $(INSTFILES_BIN_PROG); do \
	  rm -f "$$t_bindir/$$file"; \
	done; \
	if test "$$t_bindir" != "$$i_bindir"; then \
	  for file in $(INSTFILES_BIN_LINK); do \
	    rm -f "$$i_bindir/$$file" "$$i_bindir/$$file.lnk"; \
	  done; \
	  for file in $(INSTFILES_BIN_PROG); do \
	    rm -f "$$i_bindir/$$file"; \
	  done; \
	fi; \
	rmdir "$$t_bindir" 2> /dev/null; \
	if test "$$t_bindir" != "$$i_bindir"; then \
	  rmdir "$$i_bindir" 2> /dev/null; \
	fi

select-gen-for-commit-pre:

select-gen-for-commit-post:

deselect-gen-for-commit-pre:

deselect-gen-for-commit-post:

mostlyclean-pre:

mostlyclean-post:

clean-pre: mostlyclean-pre

clean-post: mostlyclean-post
	rm -f gambcomp-C@bat@ \
	  gambcomp-js@bat@ \
	  gambcomp-python@bat@ \
	  gambcomp-ruby@bat@ \
	  gambcomp-php@bat@ \
	  gambcomp-java@bat@ \
	  gambdoc@bat@ \
	  six@exe@ six@exe@.lnk \
	  gsi-script@bat@ \
	  gsi-script@bat@.lnk \
	  gsc-script@bat@ \
	  gsc-script@bat@.lnk \
	  six-script@bat@ \
	  six-script@bat@.lnk \
	  scheme-srfi-0@bat@ \
	  scheme-srfi-0@bat@.lnk \
	  scheme-r5rs@bat@ \
	  scheme-r5rs@bat@.lnk \
	  scheme-r4rs@bat@ \
	  scheme-r4rs@bat@.lnk \
	  scheme-ieee-1178-1990@bat@ \
	  scheme-ieee-1178-1990@bat@.lnk

distclean-pre: clean-pre

distclean-post: clean-post

bootclean-pre: distclean-pre

bootclean-post: distclean-post

realclean-pre: bootclean-pre

realclean-post: bootclean-post
	rm -f gambcomp-C.unix gambcomp-C.bat.windows \
	  gambcomp-js.unix gambcomp-js.bat.windows \
	  gambcomp-python.unix gambcomp-python.bat.windows \
	  gambcomp-ruby.unix gambcomp-ruby.bat.windows \
	  gambcomp-php.unix gambcomp-php.bat.windows \
	  gambcomp-java.unix gambcomp-java.bat.windows \
	  gambdoc.unix gambdoc.bat.windows makefile

rc-setup-pre:
	$(RC) add $(RCFILES)

rc-setup-post:

dist-pre dist-devel-pre:
	mkdir $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
	chmod 777 $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot)
	@echo "  Copying distribution files:"
	@for file in $(DISTFILES); do \
	  echo "    $(herefromroot)/$$file"; \
	  ln $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot) 2> /dev/null \
	    || cp -p $(srcdirpfx)$$file $(rootfromhere)/$(PACKAGE_TARNAME)/$(herefromroot); \
	done

dist-post dist-devel-post:

all-recursive bootstrap-recursive install-recursive uninstall-recursive select-gen-for-commit-recursive deselect-gen-for-commit-recursive mostlyclean-recursive clean-recursive distclean-recursive bootclean-recursive realclean-recursive rc-setup-recursive dist-recursive dist-devel-recursive:
	@if test -n "$(SUBDIRS)"; then \
	  for subdir in ""$(SUBDIRS); do \
	    target=`echo $@ | sed 's/-recursive//'`; \
	    echo making $$target in $$subdir; \
	    (cd $$subdir && $(MAKE) $$target) || exit 1; \
	  done \
	fi

all: all-post

all-post: all-recursive

all-recursive: all-pre

bootstrap: bootstrap-post

bootstrap-post: bootstrap-recursive

bootstrap-recursive: bootstrap-pre

install: install-post

install-post: install-recursive

install-recursive: install-pre

uninstall: uninstall-post

uninstall-post: uninstall-recursive

uninstall-recursive: uninstall-pre

select-gen-for-commit: select-gen-for-commit-post

select-gen-for-commit-post: select-gen-for-commit-recursive

select-gen-for-commit-recursive: select-gen-for-commit-pre

deselect-gen-for-commit: deselect-gen-for-commit-post

deselect-gen-for-commit-post: deselect-gen-for-commit-recursive

deselect-gen-for-commit-recursive: deselect-gen-for-commit-pre

mostlyclean: mostlyclean-post

mostlyclean-post: mostlyclean-recursive

mostlyclean-recursive: mostlyclean-pre

clean: clean-post

clean-post: clean-recursive

clean-recursive: clean-pre

distclean: distclean-post

distclean-post: distclean-recursive

distclean-recursive: distclean-pre

bootclean: bootclean-post

bootclean-post: bootclean-recursive

bootclean-recursive: bootclean-pre

realclean: realclean-post

realclean-post: realclean-recursive

realclean-recursive: realclean-pre

rc-setup: rc-setup-post

rc-setup-post: rc-setup-recursive

rc-setup-recursive: rc-setup-pre

dist: dist-post

dist-post: dist-recursive

dist-recursive: dist-pre

dist-devel: dist-devel-post

dist-devel-post: dist-devel-recursive

dist-devel-recursive: dist-devel-pre

makefile: makefile.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-C.unix: gambcomp-C.unix.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-C.bat.windows: gambcomp-C.bat.windows.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-js.unix: gambcomp-js.unix.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-js.bat.windows: gambcomp-js.bat.windows.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-python.unix: gambcomp-python.unix.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-python.bat.windows: gambcomp-python.bat.windows.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-ruby.unix: gambcomp-ruby.unix.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-ruby.bat.windows: gambcomp-ruby.bat.windows.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-php.unix: gambcomp-php.unix.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-php.bat.windows: gambcomp-php.bat.windows.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-java.unix: gambcomp-java.unix.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambcomp-java.bat.windows: gambcomp-java.bat.windows.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambdoc.unix: gambdoc.unix.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

gambdoc.bat.windows: gambdoc.bat.windows.in $(rootfromhere)/config.status
	cd $(rootfromhere) && CONFIG_FILES=$(herefromroot)/$@ CONFIG_HEADERS= ./config.status

# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
