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