Check-in [6339a69a26]
Bounty program for improvements to Tcl and certain Tcl packages.
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 on 2016-12-13 20:39:31
Other Links: manifest | tags
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

Modified Makefile.in from [db739bcb0b] to [b235a74349].

     1      1   CC = @[email protected]
     2      2   AR = @[email protected]
     3      3   RANLIB = @[email protected]
     4      4   CFLAGS = @[email protected] @[email protected]
     5      5   CPPFLAGS = @[email protected] [email protected]@ -I. @[email protected] @[email protected]
     6      6   LDFLAGS = @[email protected] @[email protected]
     7      7   LIBS = @[email protected]
     8         -INSTALL = @[email protected]
     9      8   PACKAGE_VERSION = @[email protected]
    10      9   prefix = @[email protected]
    11     10   exec_prefix = @[email protected]
    12     11   libdir = @[email protected]
    13     12   TCL_PACKAGE_PATH = @[email protected]
    14     13   PACKAGE_INSTALL_DIR = $(TCL_PACKAGE_PATH)/tcltls$(PACKAGE_VERSION)
           14  +INSTALL = @[email protected]
           15  +INSTALL_PROGRAM = @[email protected]
           16  +INSTALL_DATA = @[email protected]
    15     17   VPATH = @[email protected]
    16     18   
    17     19   all: @[email protected]
    18     20   
    19     21   # The shared object target
    20     22   [email protected]@: tls.o tlsBIO.o tlsIO.o tlsX509.o Makefile
    21     23   	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o [email protected]@ 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 "[email protected]" -c "$<"
    53     55   
    54     56   # Install the extension
    55     57   install: @[email protected] pkgIndex.tcl
    56     58   	$(INSTALL) -d '$(DESTDIR)$(PACKAGE_INSTALL_DIR)'
    57         -	$(INSTALL) -c @[email protected] pkgIndex.tcl '$(DESTDIR)$(PACKAGE_INSTALL_DIR)'
           59  +	$(INSTALL_PROGRAM) @[email protected] '$(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)/@[email protected]'
           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: @[email protected]
    61     70   	@[email protected] @[email protected]/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 @[email protected]/configure @[email protected]/config.sub @[email protected]/config.guess @[email protected]/install-sh
    84     93   	rm -f @[email protected]/aclocal.m4
    85     94   	rm -rf @[email protected]/autom4te.cache
    86     95   	rm -f @[email protected]/tls.tcl.h
    87     96   
    88         -.PHONY: all install clean distclean mrproper test
           97  +.PHONY: all install uninstall clean distclean mrproper test