2 # Modify the definition of $omf_dest_dir, replacing "gdp-example1" with
3 # the name of your package.
5 # No other modifications should be necessary.
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.
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.
17 omf_dest_dir=$(datadir)/omf/epiphany
18 scrollkeeper_localstate_dir = $(localstatedir)/scrollkeeper
21 $(mkinstalldirs) $(DESTDIR)$(omf_dest_dir)
22 -for file in $(srcdir)/*.omf; do \
23 $(INSTALL_DATA) $(srcdir)/$$file $(DESTDIR)$(omf_dest_dir); \
25 -scrollkeeper-update -p $(scrollkeeper_localstate_dir)
28 -for file in $(srcdir)/*.omf; do \
29 basefile=`basename $$file`; \
30 rm -f $(omf_dest_dir)/$$basefile; \
32 -rmdir $(omf_dest_dir)
33 -scrollkeeper-update -p $(scrollkeeper_localstate_dir)