File: Makefile.am

package info (click to toggle)
lire 20020214-7
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,180 kB
  • ctags: 1,245
  • sloc: perl: 11,637; xml: 5,725; sh: 3,458; makefile: 1,008
file content (99 lines) | stat: -rw-r--r-- 3,329 bytes parent folder | download
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
## Process this file with automake to produce Makefile.in
## $Id: Makefile.am,v 1.7 2001/10/18 19:13:19 flacoste Exp $

## Copyright (C) 2000-2001 Stichting LogReport Foundation LogReport@LogReport.org
## 
##     This program is free software; you can redistribute it and/or modify
##     it under the terms of the GNU General Public License as published by
##     the Free Software Foundation; either version 2 of the License, or
##     (at your option) any later version.
## 
##     This program is distributed in the hope that it will be useful,
##     but WITHOUT ANY WARRANTY; without even the implied warranty of
##     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##     GNU General Public License for more details.
## 
##     You should have received a copy of the GNU General Public License
##     along with this program (see COPYING); if not, check with
##     http://www.gnu.org/copyleft/gpl.html or write to the Free Software 
##     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.

if BUILD_XML_PARSER
xml_parser_subdirs = expat
xml_parser_all_rule	= xml-parser-all-local
xml_parser_install_rule = xml-parser-install-local
xml_parser_uninstall_rule = xml-parser-uninstall-local
xml_parser_clean_rule	= xml-parser-clean-local
else
xml_parser_subdirs =
xml_parser_all_rule =
xml_parser_install_rule =
xml_parser_clean_rule =
endif


if INSTALL_TIMEZONE
timezone_module_subdir = Time
else
timezone_module_subdir = 
endif

SUBDIRS = $(xml_parser_subdirs) $(timezone_module_subdir)

all-local : $(xml_parser_all_rule)

install-exec-local : $(xml_parser_install_rule) 

uninstall-local : $(xml_parser_uninstall_rule) 

clean-local : $(xml_parser_clean_rule)

xml-parser-all-local : stamp-xml-parser

stamp-xml-parser :
	mydir=`cd $(top_srcdir) && pwd` \
	&& cd XML-Parser && perl Makefile.PL \
		LIB=$(LR_PERL5ARCHLIBDIR) \
		EXPATINCPATH=$$mydir/extras/expat/lib \
		EXPATLIBPATH=$$mydir/extras/expat/lib/.libs \
		INSTALLMAN3DIR=$(mandir)/man3 \
	&& $(MAKE) && cd .. && touch stamp-xml-parser

xml-parser-install-local : stamp-xml-parser
	cd XML-Parser && $(MAKE) install

xml-parser-uninstall-local :
	cd XML-Parser && $(MAKE) uninstall

xml-parser-clean-local :
	cd XML-Parser && $(MAKE) clean
	rm stamp-xml-parser

EXPAT_VERSION	    = 1.95.2
XML_PARSER_VERSION  = 2.30

EXTRA_DIST = expat-$(EXPAT_VERSION).patch

# Package expat and XML-Parser if they are in the directory
dist-hook :
	if test -f $(srcdir)/expat-$(EXPAT_VERSION).tar.gz; then \
	    rm -fr $(distdir)/expat; \
	    tar xzfC $(srcdir)/expat-$(EXPAT_VERSION).tar.gz $(distdir); \
	    mv $(distdir)/expat-$(EXPAT_VERSION) $(distdir)/expat; \
	    if test -f $(srcdir)/expat-$(EXPAT_VERSION).patch; then \
		cat $(srcdir)/expat-$(EXPAT_VERSION).patch | \
		    (cd $(distdir)/expat && patch -p1 ); \
	    fi; \
	else \
	    mkdir -p $(distdir)/expat; \
	    cp $(srcdir)/expat/Makefile.in $(srcdir)/expat/configure $(distdir)/expat; \
	fi
	if test -f $(srcdir)/XML-Parser.$(XML_PARSER_VERSION).tar.gz; then \
	    rm -fr $(distdir)/XML-Parser; \
	    tar xzfC $(srcdir)/XML-Parser.$(XML_PARSER_VERSION).tar.gz $(distdir); \
	    mv $(distdir)/XML-Parser-$(XML_PARSER_VERSION) $(distdir)/XML-Parser; \
	else \
	    mkdir -p $(distdir)/XML-Parser; \
	fi
	cp $(srcdir)/XML-Parser/Makefile.in $(distdir)/XML-Parser