1 # Makefile.sub for `src utils indxbib'
3 # File position: <groff-source>/src/utils/indxbib/Makefile.sub
5 # Copyright (C) 2014 Free Software Foundation, Inc.
7 # This file is part of `font utf8' which is part of `groff'.
9 # `groff' is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 2 of the License, or
12 # (at your option) any later version.
14 # `groff' is distributed in the hope that it will be useful, but
15 # WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 # General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see
21 # <http://www.gnu.org/licenses/gpl-2.0.html>.
23 ########################################################################
27 XLIBS=$(LIBBIB) $(LIBGROFF)
39 install_data: $(srcdir)/eign
40 -test -d $(DESTDIR)$(datadir) \
41 || $(mkinstalldirs) $(DESTDIR)$(datadir)
42 -test -d $(DESTDIR)$(dataprogramdir) \
43 || $(mkinstalldirs) $(DESTDIR)$(dataprogramdir)
44 -test -d $(DESTDIR)$(datasubdir) \
45 || $(mkinstalldirs) $(DESTDIR)$(datasubdir)
46 if test -f /usr/lib/eign; then \
47 $(MK) $(DESTDIR)$(common_words_file); \
48 ln -s /usr/lib/eign $(DESTDIR)$(common_words_file) 2>/dev/null \
49 || ln /usr/lib/eign $(DESTDIR)$(common_words_file) 2>/dev/null \
50 || cp /usr/lib/eign $(DESTDIR)$(common_words_file); \
52 $(RM) $(DESTDIR)$(common_words_file); \
53 $(INSTALL_DATA) $(srcdir)/eign $(DESTDIR)$(common_words_file); \
57 $(RM) $(DESTDIR)$(common_words_file)
59 ########################################################################
61 ########################################################################