~ubuntu-branches/ubuntu/trusty/libapache2-mod-rivet/trusty

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Package Import Robot
  • Author(s): Massimo Manghi
  • Date: 2013-10-02 11:44:17 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20131002114417-aimbnyf22r39iv39
Tags: 2.1.3-1
* New upstream code 2.1.3 
* Removed package dh-apache2 from Build-Depends
* Undone patch removing distclean target from doc/Makefile.am

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# top-level Makefile.am for Apache Rivet: gets turned into a Makefile.in by automake
3
3
#
4
 
# $Id: Makefile.am 1492454 2013-06-12 22:20:46Z mxmanghi $
 
4
# $Id: Makefile.am 1518826 2013-08-29 21:20:38Z mxmanghi $
5
5
#
6
6
# 2007/12/25: Added target uninistall-local that removes the tcl stuff (mxmanghi)
7
7
# 2010/06/22: target instal-data-local searches for pkgIndex.tcl files and deletes them
14
14
RIVETLIB_DESTDIR = $(DESTDIR)@RIVET_TCL_TARGET@
15
15
RIVET_PACKAGES = $(RIVETLIB_DESTDIR)/packages
16
16
 
 
17
# I expect this symbol sooner or later to be handled by configure for arch dependent builds
 
18
# Current value is the rivetlib directory
 
19
RIVET_LIBS_ARCH = 
 
20
 
17
21
libtool: $(LIBTOOL_DEPS)
18
22
        $(SHELL) ./config.status --recheck
19
23
 
20
 
install-data-local:
 
24
install-data-local: install-binaries install-packages
 
25
 
 
26
install-binaries:
21
27
        $(mkinstalldirs) $(RIVETLIB_DESTDIR)
22
28
        cp -v rivet/init.tcl $(RIVETLIB_DESTDIR)/
23
29
        cp -rv rivet/rivet-tcl $(RIVETLIB_DESTDIR)/
24
 
        -( cd $(RIVETLIB_DESTDIR); rm -f *.la)
 
30
        -(  cd $(RIVETLIB_DESTDIR); rm -f *.la; \
 
31
        echo 'eval pkg_mkIndex -verbose [pwd] init.tcl [glob [file join packages * *.tcl] [file join $(RIVET_LIBS_ARCH)*[info sharedlibextension]]]' | @TCLSH_PROG@ ; )
25
32
 
26
33
uninstall-local:
27
34
        rm -f  $(RIVETLIB_DESTDIR)/init.tcl
28
35
        rm -fr $(RIVETLIB_DESTDIR)/rivet-tcl
29
36
        rm -f  $(RIVETLIB_DESTDIR)/librivetlib.so
30
37
        rm -f  $(RIVETLIB_DESTDIR)/librivetparser.so
 
38
        rm -fr $(RIVETLIB_DESTDIR)/packages
 
39
        rm -f  $(RIVETLIB_DESTDIR)/pkgIndex.tcl
31
40
        @if [ -z '$(wildcard $(RIVETLIB_DESTDIR)/*)' ]; then \
32
41
                rmdir $(RIVETLIB_DESTDIR); \
33
42
        fi
37
46
        cp -rv rivet/packages/* $(RIVET_PACKAGES)
38
47
        -(  cd  $(RIVETLIB_DESTDIR); \
39
48
            echo 'eval file delete [glob [file join packages * pkgIndex.tcl]] pkgIndex.tcl' | @TCLSH_PROG@ ; \
40
 
            echo 'eval pkg_mkIndex -verbose [pwd] init.tcl [glob [file join packages * *.tcl] [file join *[info sharedlibextension]]]' | @TCLSH_PROG@ ; )
 
49
            echo 'eval pkg_mkIndex -verbose [pwd] init.tcl [glob [file join packages * *.tcl] [file join $(RIVET_LIBS_ARCH)*[info sharedlibextension]]]' | @TCLSH_PROG@ ; )
41
50
 
42
51
uninstall-packages:
43
52
        rm -fr $(RIVET_PACKAGES)
45
54
        @if [ -z '$(wildcard $(RIVETLIB_DESTDIR)/*)' ]; then \
46
55
                @rmdir $(RIVETLIB_DESTDIR); \
47
56
        fi
 
57
        -(  cd  $(RIVETLIB_DESTDIR); \
 
58
            echo 'eval pkg_mkIndex -verbose [pwd] init.tcl [glob [file join packages * *.tcl] [file join $(RIVET_LIBS_ARCH)*[info sharedlibextension]]]' | @TCLSH_PROG@ ; )
48
59
 
49
60
50
61
distclean-local: