~ubuntu-branches/ubuntu/precise/gnome-games/precise-proposed

« back to all changes in this revision

Viewing changes to xmldocs.make

  • Committer: Package Import Robot
  • Author(s): Rodrigo Moya
  • Date: 2011-05-30 13:32:04 UTC
  • mfrom: (1.3.4)
  • mto: (163.1.3 precise)
  • mto: This revision was merged to the branch mainline in revision 143.
  • Revision ID: package-import@ubuntu.com-20110530133204-celaq1v1dsxc48q1
Tags: upstream-3.0.2
ImportĀ upstreamĀ versionĀ 3.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# No modifications of this Makefile should be necessary.
3
 
#
4
 
# To use this template:
5
 
#     1) Define: figdir, docname, lang, omffile, and entities in
6
 
#        your Makefile.am file for each document directory,
7
 
#        although figdir, omffile, and entities may be empty
8
 
#     2) Make sure the Makefile in (1) also includes 
9
 
#        "include $(top_srcdir)/xmldocs.make" and
10
 
#        "dist-hook: app-dist-hook".
11
 
#     3) Optionally define 'entities' to hold xml entities which
12
 
#        you would also like installed
13
 
#     4) Figures must go under $(figdir)/ and be in PNG format
14
 
#     5) You should only have one document per directory 
15
 
#     6) Note that the figure directory, $(figdir)/, should not have its
16
 
#        own Makefile since this Makefile installs those figures.
17
 
#
18
 
# example Makefile.am:
19
 
#   figdir = figures
20
 
#   docname = scrollkeeper-manual
21
 
#   lang = C
22
 
#   omffile=scrollkeeper-manual-C.omf
23
 
#   entities = fdl.xml
24
 
#   include $(top_srcdir)/xmldocs.make
25
 
#   dist-hook: app-dist-hook
26
 
#
27
 
# About this file:
28
 
#       This file was taken from scrollkeeper_example2, a package illustrating
29
 
#       how to install documentation and OMF files for use with ScrollKeeper 
30
 
#       0.3.x and 0.4.x.  For more information, see:
31
 
#               http://scrollkeeper.sourceforge.net/
32
 
#       Version: 0.1.2 (last updated: March 20, 2002)
33
 
#
34
 
 
35
 
 
36
 
# ********** Begin of section some packagers may need to modify  ***********
37
 
# This variable (docdir) specifies where the documents should be installed.
38
 
# This default value should work for most packages.
39
 
docdir = $(datadir)/gnome/help/$(docname)/$(lang)
40
 
 
41
 
# ***********  You should not have to edit below this line  ****************
42
 
xml_files = $(entities) $(docname).xml
43
 
 
44
 
EXTRA_DIST = $(xml_files) $(omffile)
45
 
CLEANFILES = omf_timestamp
46
 
 
47
 
include $(top_srcdir)/omf.make
48
 
 
49
 
all: omf
50
 
 
51
 
$(docname).xml: $(entities)
52
 
 
53
 
app-dist-hook:
54
 
        if test "$(figdir)"; then \
55
 
          $(mkinstalldirs) $(distdir)/$(figdir); \
56
 
          for file in $(srcdir)/$(figdir)/*.png; do \
57
 
            basefile=`echo $$file | sed -e  's,^.*/,,'`; \
58
 
            $(INSTALL_DATA) $$file $(distdir)/$(figdir)/$$basefile; \
59
 
          done \
60
 
        fi
61
 
 
62
 
install-data-local: omf
63
 
        $(mkinstalldirs) $(DESTDIR)$(docdir)
64
 
        for file in $(xml_files); do \
65
 
          cp $(srcdir)/$$file $(DESTDIR)$(docdir); \
66
 
        done
67
 
        if test "$(figdir)"; then \
68
 
          $(mkinstalldirs) $(DESTDIR)$(docdir)/$(figdir); \
69
 
          for file in $(srcdir)/$(figdir)/*.png; do \
70
 
            basefile=`echo $$file | sed -e  's,^.*/,,'`; \
71
 
            $(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/$(figdir)/$$basefile; \
72
 
          done \
73
 
        fi
74
 
 
75
 
install-data-hook: install-data-hook-omf
76
 
 
77
 
uninstall-local: uninstall-local-doc uninstall-local-omf
78
 
 
79
 
uninstall-local-doc:
80
 
        -if test "$(figdir)"; then \
81
 
          for file in $(srcdir)/$(figdir)/*.png; do \
82
 
            basefile=`echo $$file | sed -e  's,^.*/,,'`; \
83
 
            rm -f $(docdir)/$(figdir)/$$basefile; \
84
 
          done; \
85
 
          rmdir $(DESTDIR)$(docdir)/$(figdir); \
86
 
        fi
87
 
        -for file in $(xml_files); do \
88
 
          rm -f $(DESTDIR)$(docdir)/$$file; \
89
 
        done
90
 
        -rmdir $(DESTDIR)$(docdir)
91
 
 
92
 
clean-local: clean-local-omf
 
 
b'\\ No newline at end of file'