~ubuntu-branches/ubuntu/edgy/gnome2-user-docs/edgy

« back to all changes in this revision

Viewing changes to omf.make

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2006-02-21 10:04:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060221100403-4nxwxg9fhoiglafw
Tags: 2.13.1.1-0ubuntu1
* New upstream release:
  - Added missing OMF files
* debian/rules:
  - added --disable-scrollkeeper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
2
 
# No modifications of this Makefile should be necessary.
3
 
#
4
 
# This file contains the build instructions for installing OMF files.  It is
5
 
# generally called from the makefiles for particular formats of documentation.
6
 
#
7
 
# Note that you must configure your package with --localstatedir=/var/lib
8
 
# so that the scrollkeeper-update command below will update the database
9
 
# in the standard scrollkeeper directory.
10
 
#
11
 
# If it is impossible to configure with --localstatedir=/var/lib, then
12
 
# modify the definition of scrollkeeper_localstate_dir so that
13
 
# it points to the correct location. Note that you must still use 
14
 
# $(localstatedir) in this or when people build RPMs it will update
15
 
# the real database on their system instead of the one under RPM_BUILD_ROOT.
16
 
#
17
 
# Note: This make file is not incorporated into xmldocs.make because, in
18
 
#       general, there will be other documents install besides XML documents
19
 
#       and the makefiles for these formats should also include this file.
20
 
#
21
 
# About this file:
22
 
#       This file was taken from scrollkeeper_example2, a package illustrating
23
 
#       how to install documentation and OMF files for use with ScrollKeeper
24
 
#       0.3.x and 0.4.x.  For more information, see:
25
 
#               http://scrollkeeper.sourceforge.net/    
26
 
#       Version: 0.1.2 (last updated: March 20, 2002)
27
 
#
28
 
 
29
 
omf_dest_dir=$(datadir)/omf/@PACKAGE@
30
 
scrollkeeper_localstate_dir = $(localstatedir)/scrollkeeper
31
 
 
32
 
omf: omf_timestamp
33
 
 
34
 
omf_timestamp: $(omffile)
35
 
        -for file in $(omffile); do \
36
 
          scrollkeeper-preinstall $(docdir)/$(docname).xml $(srcdir)/$$file $$file.out; \
37
 
        done
38
 
        touch omf_timestamp
39
 
 
40
 
install-data-hook-omf:
41
 
        $(mkinstalldirs) $(DESTDIR)$(omf_dest_dir)
42
 
        for file in $(omffile); do \
43
 
                $(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
44
 
        done
45
 
        -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
46
 
 
47
 
uninstall-local-omf:
48
 
        -for file in $(srcdir)/*.omf; do \
49
 
                basefile=`basename $$file`; \
50
 
                rm -f $(omf_dest_dir)/$$basefile; \
51
 
        done
52
 
        -rmdir $(omf_dest_dir)
53
 
        -scrollkeeper-update -p $(scrollkeeper_localstate_dir)