Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (69 sloc) 2.11 KB
SHELL = @SHELL@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
datadir = @datadir@
datarootdir = @datarootdir@
srcdir = @srcdir@
VPATH = $(srcdir)
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
# These may be overridden by make invocators
DESTDIR =
OPTFLAGS = @OPTFLAGS@
GOSH = @GOSH@
GAUCHE_CONFIG = @GAUCHE_CONFIG@
GAUCHE_PACKAGE = @GAUCHE_PACKAGE@
INSTALL = @GAUCHE_INSTALL@
# Other parameters
SOEXT = @SOEXT@
OBJEXT = @OBJEXT@
EXEEXT = @EXEEXT@
LOCAL_PATHS = @LOCAL_PATHS@
HAVE_GTKGL=@GTKGL_SO@
HAVE_GLGD=@GLGD_SO@
# Module-specific stuff
PACKAGE = Gauche-gtk2
CONFIG_GENERATED = Makefile $(PACKAGE).gpd \
config.cache config.log config.status \
autom4te*.cache
GAUCHE_PKGINCDIR = $(DESTDIR)@GAUCHE_PKGINCDIR@
GAUCHE_PKGLIBDIR = $(DESTDIR)@GAUCHE_PKGLIBDIR@
GAUCHE_PKGARCHDIR = $(DESTDIR)@GAUCHE_PKGARCHDIR@
.PHONY: all check clean install distclean maintainer-clean stubs
all :
cd src; $(MAKE) all
cd lib; $(MAKE) all
if test X$(HAVE_GTKGL) != X; then (cd gtkgl; $(MAKE) all); fi
if test X$(HAVE_GLGD) != X; then (cd glgd; $(MAKE) all); fi
check : all
cd src; $(MAKE) check
if test X$(HAVE_GTKGL) != X; then (cd gtkgl; $(MAKE) check); fi
if test X$(HAVE_GLGD) != X; then (cd glgd; $(MAKE) check); fi
stubs :
cd src; $(MAKE) stubs
clean :
rm -rf core *~
cd src; $(MAKE) clean
cd lib; $(MAKE) clean
cd gtkgl; $(MAKE) clean
cd glgd; $(MAKE) clean
distclean : clean
cd src; $(MAKE) distclean
cd lib; $(MAKE) distclean
cd gtkgl; $(MAKE) distclean
cd glgd; $(MAKE) distclean
rm -rf $(CONFIG_GENERATED)
install :
cd src; $(MAKE) install
cd lib; $(MAKE) install
$(INSTALL) -m 444 -T $(GAUCHE_PKGLIBDIR)/.packages Gauche-gtk2.gpd
if test X$(HAVE_GTKGL) != X; then (cd gtkgl; $(MAKE) install); fi
if test X$(HAVE_GLGD) != X; then (cd glgd; $(MAKE) install); fi
maintainer-clean : clean
cd src; $(MAKE) maintainer-clean
cd lib; $(MAKE) maintainer-clean
cd gtkgl; $(MAKE) maintainer-clean
cd glgd; $(MAKE) maintainer-clean
rm -rf configure VERSION $(CONFIG_GENERATED)