aboutsummaryrefslogtreecommitdiffstats
path: root/filter/Makefile.am
blob: 502e543a5ccacad949bb02d453c88b892dca4c1b (plain) (blame)
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

glade_DATA = filter.glade

INCLUDES =                  \
    -I $(top_srcdir)            \
    -I $(top_srcdir)/camel          \
    -I $(top_srcdir)/e-util         \
    -I $(top_srcdir)/shell          \
    -I $(top_srcdir)/widgets/misc       \
    -DFILTER_GLADEDIR=\"$(gladedir)\"   \
    -DG_LOG_DOMAIN=\"filter\"       \
    $(LIBFILTER_CFLAGS)

noinst_LTLIBRARIES =                \
    libfilter.la

libfilter_la_SOURCES =              \
    filter-code.c               \
    filter-code.h               \
    filter-colour.c             \
    filter-colour.h             \
    filter-context.c            \
    filter-context.h            \
    filter-datespec.c           \
    filter-datespec.h           \
    filter-editor.c             \
    filter-editor.h             \
    filter-element.c            \
    filter-element.h            \
    filter-file.c               \
    filter-file.h               \
    filter-filter.c             \
    filter-filter.h             \
    filter-folder.c             \
    filter-folder.h             \
    filter-input.c              \
    filter-input.h              \
    filter-int.c                \
    filter-int.h                \
    filter-label.c              \
    filter-label.h              \
    filter-marshal.c            \
    filter-marshal.h            \
    filter-option.c             \
    filter-option.h             \
    filter-part.c               \
    filter-part.h               \
    filter-rule.c               \
    filter-rule.h               \
    filter-source.h             \
    filter-source.c             \
    rule-context.c              \
    rule-context.h              \
    rule-editor.c               \
    rule-editor.h               \
    score-context.c             \
    score-context.h             \
    score-editor.c              \
    score-editor.h              \
    score-rule.c                \
    score-rule.h                \
    vfolder-context.c           \
    vfolder-context.h           \
    vfolder-editor.c            \
    vfolder-editor.h            \
    vfolder-rule.c              \
    vfolder-rule.h

libfilter_la_DEPENDENCIES = libfilter-i18n.h

EXTRA_DIST =                    \
    $(glade_DATA)               \
    $(error_in_files)           \
    ChangeLog.pre-1-4           \
    filter-marshal.list         \
    filtertypes.xml             \
    libfilter-i18n.h            \
    vfoldertypes.xml            \
    searchtypes.xml

# basic rules.
filterdir = $(privdatadir)
filter_DATA = filtertypes.xml vfoldertypes.xml searchtypes.xml

error_in_files = filter-errors.xml.in
error_DATA = $(error_in_files:.xml.in=.xml)
errordir = $(privdatadir)/errors
@INTLTOOL_XML_RULE@

libfilter-i18n.h: filtertypes.xml vfoldertypes.xml
    echo "/* Automatically generated. Do not edit. */" > $@;          \
    cat $(srcdir)/filtertypes.xml $(srcdir)/vfoldertypes.xml |        \
        sed -n -e 's:.*<title>\(.*\)</title>:char *s = N_("\1");:p' | \
        sort -u >> $@

MARSHAL_GENERATED = filter-marshal.c filter-marshal.h
@EVO_MARSHAL_RULE@