$NetBSD: patch-ae,v 1.13 2001/05/14 14:52:38 jlam Exp $ --- src/bin/pgtclsh/Makefile.orig Fri Feb 23 13:12:17 2001 +++ src/bin/pgtclsh/Makefile @@ -22,19 +22,17 @@ -include Makefile.tkdefs endif -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_TARGET = install-tcl # Add Tk targets if Tk is available ifeq ($(with_tk), yes) PROGRAMS += pgtksh +INSTALL_TARGET += install-tk endif all: submake $(PROGRAMS) @@ -49,8 +47,12 @@ submake: $(MAKE) -C $(libpgtcl_builddir) all -install: all installdirs +install: $(INSTALL_TARGET) + +install-tcl: installdirs pgtclsh $(INSTALL_PROGRAM) pgtclsh $(DESTDIR)$(bindir)/pgtclsh + +install-tk: installdirs pgtksh ifeq ($(with_tk), yes) $(INSTALL_PROGRAM) pgtksh $(DESTDIR)$(bindir)/pgtksh endif