summaryrefslogtreecommitdiffstats
path: root/tdehtml/css/Makefile.am
blob: fadf66961b1c0aff1d7e26a602cb4e43e837a933 (plain)
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
#    This file is part of the KDE libraries
#    Copyright (C) 1997 Martin Jones ([email protected])
#              (C) 1997 Torben Weis ([email protected])

#    This library is free software; you can redistribute it and/or
#    modify it under the terms of the GNU Library General Public
#    License as published by the Free Software Foundation; either
#    version 2 of the License, or (at your option) any later version.

#    This library 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
#    Library General Public License for more details.

#    You should have received a copy of the GNU Library General Public License
#    along with this library; see the file COPYING.LIB.  If not, write to
#    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
#    Boston, MA 02110-1301, USA.

KDE_CXXFLAGS = $(WOVERLOADED_VIRTUAL) 

YACC=bison

noinst_LTLIBRARIES = libtdehtmlcss.la
libtdehtmlcss_la_SOURCES = \
	css_stylesheetimpl.cpp css_ruleimpl.cpp css_valueimpl.cpp css_base.cpp \
	cssparser.cpp cssstyleselector.cpp csshelper.cpp parser.cpp \
	css_renderstyledeclarationimpl.cpp

#libtdehtmlcss_la_LDFLAGS = -no-undefined 
libtdehtmlcss_la_METASOURCES = AUTO

noinst_HEADERS = \
	css_extensionsimpl.h  css_stylesheetimpl.h  cssparser.h \
	css_ruleimpl.h css_valueimpl.h css_base.h \
	cssstyleselector.h csshelper.h parser.h   \
	css_renderstyledeclarationimpl.h

INCLUDES = -I$(top_srcdir)/kimgio -I$(top_srcdir)/tdeio -I$(top_srcdir)/dcop \
 -I$(top_srcdir)/tdehtml -I$(top_srcdir)/libltdl -I$(top_srcdir) \
 -I$(top_srcdir)/tdewallet/client -I$(top_srcdir)/tdeutils \
 $(all_includes)

cssdir = $(kde_datadir)/tdehtml/css
css_DATA = html4.css quirks.css

SRCDOC_DEST=$(kde_htmldir)/en/tdelibs/tdehtml

EXTRA_DIST = parser.y

parser: $(srcdir)/parser.y
	cd $(srcdir); \
	$(YACC) -v -d -p cssyy parser.y && mv parser.tab.c parser.cpp; \
	if test -f parser.tab.h; then \
	if cmp -s parser.tab.h parser.h; then rm -f parser.tab.h; \
	else mv parser.tab.h parser.h; fi \
	else :; fi

.PHONY: parser