Imported Upstream version 1.22.3
[platform/upstream/groff.git] / src / utils / indxbib / Makefile.sub
1 # Makefile.sub for `src utils indxbib'
2 #
3 # File position: <groff-source>/src/utils/indxbib/Makefile.sub
4 #
5 # Copyright (C) 2014  Free Software Foundation, Inc.
6 #
7 # This file is part of `font utf8' which is part of `groff'.
8 #
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.
13 #
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.
18 #
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>.
22 #
23 ########################################################################
24
25 PROG=indxbib$(EXEEXT)
26 MAN1=indxbib.n
27 XLIBS=$(LIBBIB) $(LIBGROFF)
28 MLIB=$(LIBM)
29 OBJS=\
30   indxbib.$(OBJEXT) \
31   signal.$(OBJEXT)
32 CCSRCS=\
33   $(srcdir)/indxbib.cpp
34 CSRCS=\
35   $(srcdir)/signal.c
36 NAMEPREFIX=$(g)
37 RM=rm -f
38
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); \
51         else \
52           $(RM) $(DESTDIR)$(common_words_file); \
53           $(INSTALL_DATA) $(srcdir)/eign $(DESTDIR)$(common_words_file); \
54         fi
55
56 uninstall_sub:
57         $(RM) $(DESTDIR)$(common_words_file)
58
59 ########################################################################
60 # Emacs settings
61 ########################################################################
62 #
63 # Local Variables:
64 # mode: makefile
65 # End: