aboutsummaryrefslogtreecommitdiffstats
path: root/help/C/Makefile.am
blob: 10a265a9c7354eec06e81452139b13a56e24ab23 (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
evolution_helpdir = $(datadir)/gnome/help/evolution/C

GUIDE_SGML_FILES =      \
    evolution.sgml      \
    apx-authors.sgml    \
    apx-bugs.sgml       \
    apx-gloss.sgml      \
    config-prefs.sgml   \
    config-setupassist.sgml \
    config-sync.sgml    \
    preface.sgml        \
    usage-calendar.sgml \
    usage-contact.sgml  \
    usage-mail.sgml     \
    usage-mainwindow.sgml   \
    usage-sync.sgml

FAQ_SGML_FILES =        \
    evolution-faq.sgml

EXTRA_DIST =            \
    $(FAQ_SGML_FILES)   \
    $(GUIDE_SGML_FILES)

all: evolution-guide evolution-faq

evolution-guide: $(GUIDE_SGML_FILES)
    -db2html $(srcdir)/evolution.sgml

evolution-faq: $(FAQ_SGML_FILES)
    -db2html $(srcdir)/evolution-faq.sgml

dist-hook:
    mkdir $(distdir)/fig
    mkdir $(distdir)/evolution
    mkdir $(distdir)/evolution/stylesheet-images
    files=`echo $(srcdir)/evolution/*.html` ; \
    test '$(srcdir)/evolution/*.html' = "$$files" \
        || cp $$files $(distdir)/evolution
    files=`echo $(srcdir)/evolution/*.css` ; \
    test '$(srcdir)/evolution/*.css' = "$$files" \
        || cp $$files $(distdir)/evolution
    files=`echo $(srcdir)/fig/*.png` ; \
    test '$(srcdir)/fig/*.png' = "$$files" \
        || cp $$files $(distdir)/evolution
    files=`echo $(srcdir)/evolution/stylesheet-images/*` ; \
    test '$(srcdir)/evolution/stylesheet-images/*' = "$$files" \
        || cp $$files $(distdir)/evolution

# FIXME really messy here
install-data-local: evolution-guide evolution-faq
    $(top_srcdir)/mkinstalldirs $(DESTDIR)$(evolution_helpdir)/evolution-guide
    -for file in $(srcdir)/evolution/*.html $(srcdir)/evolution/*.css; do \
        basefile=`basename $$file`; \
        $(INSTALL_DATA) $$file $(DESTDIR)$(evolution_helpdir)/evolution-guide/$$basefile; \
    done

    $(top_srcdir)/mkinstalldirs $(DESTDIR)$(evolution_helpdir)/evolution-faq
    -for file in $(srcdir)/evolution-faq/*.html $(srcdir)/evolution-faq/*.css; do \
        basefile=`basename $$file`; \
        $(INSTALL_DATA) $$file $(DESTDIR)$(evolution_helpdir)/evolution-faq/$$basefile; \
    done

    $(top_srcdir)/mkinstalldirs $(DESTDIR)$(evolution_helpdir)/evolution-guide/fig
    -for file in $(srcdir)/fig/*.png; do \
        basefile=`basename $$file`; \
        $(INSTALL_DATA) $$file $(DESTDIR)$(evolution_helpdir)/evolution-guide/fig/$$basefile; \
    done

    $(top_srcdir)/mkinstalldirs $(DESTDIR)$(evolution_helpdir)/evolution-guide/stylesheet-images
    -for file in $(srcdir)/evolution/stylesheet-images/*; do \
        basefile=`basename $$file`; \
        $(INSTALL_DATA) $$file $(DESTDIR)$(evolution_helpdir)/evolution-guide/stylesheet-images/$$basefile; \
    done

evolution.ps: evolution.sgml
    -db2ps $<

evolution.rtf: evolution.sgml   
    -db2rtf $<