~ubuntu-branches/ubuntu/trusty/xiphos/trusty

« back to all changes in this revision

Viewing changes to omf.make

  • Committer: Bazaar Package Importer
  • Author(s): Dmitrijs Ledkovs, Jonathan Marsden, Dmitrijs Ledkovs
  • Date: 2010-11-25 21:26:48 UTC
  • mfrom: (2.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20101125212648-mc64wvs0nw3xp7bx
Tags: 3.1.4-1
[ Jonathan Marsden ]
* New upstream release 3.1.4
* Removed debian/patch/* since the one patch was included upstream.
* Bumped Standards-Version to 3.9.1 (no changes required).
* debian/README.Debian: Corrected spelling and reworded for clarity.
* debian/control: Add Jonathan Marsden back into Uploaders.

[ Dmitrijs Ledkovs ]
* Added local options dpkg-source to unapply patches and fail on
  upstream source changes (ignoring false positives).
* Added bzr-builddeb hook to generate source-format before build. If you
  are not using bzr-builddeb, you must run "./debian/rules clean" before
  building.
* patches/xul-2.0.patch: bump UPPER_RANGE to allow running against xul20.

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
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, 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 derived from scrollkeeper_example2, a package
23
 
#       illustrating how to install documentation and OMF files for use with
24
 
#       ScrollKeeper 0.3.x and 0.4.x.  For more information, see:
25
 
#               http://scrollkeeper.sourceforge.net/    
26
 
#       Version: 0.1.3 (last updated: March 20, 2002)
27
 
#
28
 
 
29
 
omf_dest_dir=$(datadir)/omf/@PACKAGE@
30
 
scrollkeeper_localstate_dir = $(localstatedir)/scrollkeeper
31
 
 
32
 
# At some point, it may be wise to change to something like this:
33
 
# scrollkeeper_localstate_dir = @SCROLLKEEPER_STATEDIR@
34
 
 
35
 
omf: omf_timestamp
36
 
 
37
 
omf_timestamp: $(omffile)
38
 
        -for file in $(omffile); do \
39
 
          scrollkeeper-preinstall $(docdir)/$(docname).xml $(srcdir)/$$file $$file.out; \
40
 
        done; \
41
 
        touch omf_timestamp
42
 
 
43
 
install-data-hook-omf:
44
 
        $(mkinstalldirs) $(DESTDIR)$(omf_dest_dir)
45
 
        for file in $(omffile); do \
46
 
                $(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \
47
 
        done
48
 
        -scrollkeeper-update -p $(DESTDIR)$(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir)
49
 
 
50
 
uninstall-local-omf:
51
 
        -for file in $(srcdir)/*.omf; do \
52
 
                basefile=`basename $$file`; \
53
 
                rm -f $(DESTDIR)$(omf_dest_dir)/$$basefile; \
54
 
        done
55
 
        -rmdir $(DESTDIR)$(omf_dest_dir)
56
 
        -scrollkeeper-update -p $(DESTDIR)$(scrollkeeper_localstate_dir)
57
 
 
58
 
clean-local-omf:
59
 
        -for file in $(omffile); do \
60
 
                rm -f $$file.out; \
61
 
        done