From 8e2bc595c67b57a2bd58661b08dc2d7585090e37 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 20 Aug 2015 06:16:01 +0100 Subject: Remove use of preinst-swig script Complete the prototype removal in ca1431. The script prevents SWIGTOOL=gdb from working as gdb can't be used to debug a shell script, it requires a binary. Add support for SWIGTOOL in all the examples. SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles. See issue #473. --- Examples/go/director/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Examples/go/director') diff --git a/Examples/go/director/Makefile b/Examples/go/director/Makefile index 2e9e87b89..430cac834 100644 --- a/Examples/go/director/Makefile +++ b/Examples/go/director/Makefile @@ -1,5 +1,6 @@ TOP = ../.. -SWIG = $(TOP)/../preinst-swig +SWIGEXE = $(TOP)/../swig +SWIG_LIB_DIR = $(TOP)/../$(TOP_BUILDDIR_TO_TOP_SRCDIR)Lib CXXSRCS = GOSRCS = director.go TARGET = example @@ -15,10 +16,11 @@ build: fi @# Note: example.go gets generated by SWIG $(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' CXXSRCS='$(CXXSRCS)' GOSRCS='example.go $(GOSRCS)' \ - SWIG='$(SWIG)' SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' go_cpp + SWIG_LIB_DIR='$(SWIG_LIB_DIR)' SWIGEXE='$(SWIGEXE)' \ + SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' go_cpp clean: if [ -n '$(SRCDIR)' ]; then \ - rm $(GOSRCS) || true; \ + rm -f $(GOSRCS); \ fi $(MAKE) -f $(TOP)/Makefile SRCDIR='$(SRCDIR)' INTERFACE='$(INTERFACE)' go_clean -- cgit v1.2.1