blob: 39ba8450dad618a709e63d72b3fd17839fff26fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
$NetBSD: patch-ae,v 1.1.1.1 2004/07/24 22:14:40 recht 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
|