Check-in [6339a69a26]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:More work on a better install target and added a basic uninstall target
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:6339a69a26010e493ad313d0dfa30bfd32c75e1e
User & Date: rkeene 2016-12-13 20:39:31
Context
2016-12-13
20:46
Treat tls.tcl.h as a normal file and always regenerate it, and never distribute it -- end users will need "od" to create it check-in: 97cbb17f4f user: rkeene tags: trunk
20:39
More work on a better install target and added a basic uninstall target check-in: 6339a69a26 user: rkeene tags: trunk
20:23
Updated install target to be more compliant for other platforms check-in: 942287db68 user: rkeene tags: trunk
Changes

Changes to Makefile.in.

     1      1   CC = @CC@
     2      2   AR = @AR@
     3      3   RANLIB = @RANLIB@
     4      4   CFLAGS = @CFLAGS@ @SHOBJFLAGS@
     5      5   CPPFLAGS = @CPPFLAGS@ -I@srcdir@ -I. @DEFS@ @TCL_DEFS@
     6      6   LDFLAGS = @LDFLAGS@ @SHOBJLDFLAGS@
     7      7   LIBS = @LIBS@
     8         -INSTALL = @INSTALL@
     9      8   PACKAGE_VERSION = @PACKAGE_VERSION@
    10      9   prefix = @prefix@
    11     10   exec_prefix = @exec_prefix@
    12     11   libdir = @libdir@
    13     12   TCL_PACKAGE_PATH = @TCL_PACKAGE_PATH@
    14     13   PACKAGE_INSTALL_DIR = $(TCL_PACKAGE_PATH)/tcltls$(PACKAGE_VERSION)
           14  +INSTALL = @INSTALL@
           15  +INSTALL_PROGRAM = @INSTALL_PROGRAM@
           16  +INSTALL_DATA = @INSTALL_DATA@
    15     17   VPATH = @srcdir@
    16     18   
    17     19   all: @EXTENSION_TARGET@
    18     20   
    19     21   # The shared object target
    20     22   tcltls.@SHOBJEXT@: tls.o tlsBIO.o tlsIO.o tlsX509.o Makefile
    21     23   	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o tcltls.@SHOBJEXT@ tls.o tlsBIO.o tlsIO.o tlsX509.o $(LIBS)
................................................................................
    50     52   # tree -- the default target will not match paths
    51     53   .c.o:
    52     54   	$(CC) $(CPPFLAGS) $(CFLAGS) -o "$@" -c "$<"
    53     55   
    54     56   # Install the extension
    55     57   install: @EXTENSION_TARGET@ pkgIndex.tcl
    56     58   	$(INSTALL) -d '$(DESTDIR)$(PACKAGE_INSTALL_DIR)'
    57         -	$(INSTALL) -c @EXTENSION_TARGET@ pkgIndex.tcl '$(DESTDIR)$(PACKAGE_INSTALL_DIR)'
           59  +	$(INSTALL_PROGRAM) @EXTENSION_TARGET@ '$(DESTDIR)$(PACKAGE_INSTALL_DIR)'
           60  +	$(INSTALL_DATA)    pkgIndex.tcl '$(DESTDIR)$(PACKAGE_INSTALL_DIR)'
           61  +
           62  +# A convienent helper to undo the installation just done
           63  +uninstall:
           64  +	rm -f '$(DESTDIR)$(PACKAGE_INSTALL_DIR)/@EXTENSION_TARGET@'
           65  +	rm -f '$(DESTDIR)$(PACKAGE_INSTALL_DIR)/pkgIndex.tcl'
           66  +	-rmdir '$(DESTDIR)$(PACKAGE_INSTALL_DIR)'
    58     67   
    59     68   # Test target, run the automated test suite
    60     69   test: @EXTENSION_TARGET@
    61     70   	@TCLSH_PROG@ @srcdir@/tests/all.tcl $(TESTFLAGS) -load "lappend auto_path $(shell pwd)"
    62     71   
    63     72   # Clean the local build directory for rebuild against the same configuration
    64     73   clean:
................................................................................
    81     90   # version control system
    82     91   mrproper: distclean
    83     92   	rm -f @srcdir@/configure @srcdir@/config.sub @srcdir@/config.guess @srcdir@/install-sh
    84     93   	rm -f @srcdir@/aclocal.m4
    85     94   	rm -rf @srcdir@/autom4te.cache
    86     95   	rm -f @srcdir@/tls.tcl.h
    87     96   
    88         -.PHONY: all install clean distclean mrproper test
           97  +.PHONY: all install uninstall clean distclean mrproper test