$NetBSD: patch-ae,v 1.14 2003/01/05 20:12:13 jlam Exp $ --- src/bin/pgtclsh/Makefile.orig Thu Jun 20 16:29:42 2002 +++ src/bin/pgtclsh/Makefile @@ -15,19 +15,17 @@ top_builddir = ../../.. include $(top_builddir)/src/Makefile.global -libpgtcl_srcdir = $(top_srcdir)/src/interfaces/libpgtcl -libpgtcl_builddir = $(top_builddir)/src/interfaces/libpgtcl -libpgtcl = -L$(libpgtcl_builddir) -lpgtcl - override CPPFLAGS := -I$(libpgtcl_srcdir) $(CPPFLAGS) $(TK_XINCLUDES) # If we are here then Tcl is available PROGRAMS = pgtclsh +INSTALL_TARGETS = install-tcl # Add Tk targets if Tk is available ifeq ($(with_tk), yes) PROGRAMS += pgtksh +INSTALL_TARGETS += install-tk endif all: submake $(PROGRAMS) @@ -42,9 +40,13 @@ pgtksh: pgtkAppInit.o submake: $(MAKE) -C $(libpgtcl_builddir) all -install: all installdirs +install: $(INSTALL_TARGETS) + +install-tcl: pgtclsh installdirs $(INSTALL_PROGRAM) pgtclsh $(DESTDIR)$(bindir)/pgtclsh + ifeq ($(with_tk), yes) +install-tk: pgtksh installdirs $(INSTALL_PROGRAM) pgtksh $(DESTDIR)$(bindir)/pgtksh endif