summaryrefslogtreecommitdiff
path: root/comms/hamlib/files/patch-bindings_Makefile.in
blob: 818c9e895de327c8f03f226c03b43011ffd40492 (plain) (blame)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
--- bindings/Makefile.in.orig	Thu Feb 22 14:24:58 2007
+++ bindings/Makefile.in	Thu Feb 22 14:24:59 2007
@@ -273,7 +273,7 @@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 pyexecdir = @pyexecdir@
-pythondir = $(prefix)/lib/python
+pythondir = @pyexecdir@
 sbindir = @sbindir@
 sharedstatedir = @sharedstatedir@
 subdirs = @subdirs@
@@ -286,13 +286,13 @@
 ##########################################
 # Tcl binding
 tcl_ltlib = hamlibtcl.la
-tcldir = $(prefix)/lib/tcl
+tcldir = $(TCL_BIN_DIR)
 PKG_VER = 1.0
 DLL = hamlibtcl-$(PKG_VER)@TCL_SHLIB_SUFFIX@
 nodist_hamlibtcl_la_SOURCES = hamlibtcl_wrap.c
 hamlibtcl_la_LDFLAGS = -no-undefined -module -release $(PKG_VER) -avoid-version @TCL_LIB_SPEC@
 hamlibtcl_la_LIBADD = $(top_builddir)/src/libhamlib.la
-hamlibtcl_ladir = $(tcldir)
+hamlibtcl_ladir = $(tcldir)/hamlib
 hamlibtcl_la_DATA = pkgIndex.tcl
 
 ##########################################
@@ -305,7 +305,8 @@
 python_PYTHON = Hamlib.py
 
 ##########################################
-lib_LTLIBRARIES = $(tcl_ltlib) $(python_ltlib)
+#lib_LTLIBRARIES = $(tcl_ltlib) $(python_ltlib)
+lib_LTLIBRARIES = @BINDING_LIB_TARGETS@
 EXTRA_DIST = hamlib.swg ignore.swg rig.swg rotator.swg \
 			Makefile.PL perltest.pl tcltest.tcl pytest.py
 
@@ -424,6 +425,7 @@
 	-rm -f libtool
 uninstall-info-am:
 install-pythonPYTHON: $(python_PYTHON)
+install-py:
 	@$(NORMAL_INSTALL)
 	test -z "$(pythondir)" || $(mkdir_p) "$(DESTDIR)$(pythondir)"
 	@list='$(python_PYTHON)'; dlist=''; for p in $$list; do\
@@ -452,6 +454,7 @@
 	  rm -f "$(DESTDIR)$(pythondir)/$${f}o"; \
 	done
 install-hamlibtcl_laDATA: $(hamlibtcl_la_DATA)
+install-tcl: install-libLTLIBRARIES
 	@$(NORMAL_INSTALL)
 	test -z "$(hamlibtcl_ladir)" || $(mkdir_p) "$(DESTDIR)$(hamlibtcl_ladir)"
 	@list='$(hamlibtcl_la_DATA)'; for p in $$list; do \
@@ -554,7 +557,8 @@
 	  test -z "$$dir" || $(mkdir_p) "$$dir"; \
 	done
 install: $(BUILT_SOURCES)
-	$(MAKE) $(AM_MAKEFLAGS) install-am
+#	$(MAKE) $(AM_MAKEFLAGS) install-am
+	$(MAKE) $(AM_MAKEFLAGS) $(BINDING_INSTALL_EXEC)
 install-exec: install-exec-am
 install-data: install-data-am
 uninstall: uninstall-am
@@ -700,7 +704,6 @@
 check-tcl: all-tcl
 	TCLLIBPATH=$(builddir)/.libs $(srcdir)/tcltest.tcl || echo "Tcl test failed" 1>&2
 
-install-tcl: 
 clean-tcl:
 distclean-tcl: clean-tcl
 uninstall-tcl: 
@@ -715,7 +718,6 @@
 check-py: all-py
 	$(srcdir)/pytest.py || echo "Python test failed" 1>&2
 
-install-py:
 clean-py:
 distclean-py:
 uninstall-py: