]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/groff/src/utils/indxbib/Makefile.sub
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / groff / src / utils / indxbib / Makefile.sub
1 PROG=indxbib$(EXEEXT)
2 MAN1=indxbib.n
3 XLIBS=$(LIBBIB) $(LIBGROFF)
4 MLIB=$(LIBM)
5 OBJS=\
6   indxbib.$(OBJEXT) \
7   signal.$(OBJEXT)
8 CCSRCS=\
9   $(srcdir)/indxbib.cpp
10 CSRCS=\
11   $(srcdir)/signal.c
12 NAMEPREFIX=$(g)
13
14 install_data: $(srcdir)/eign
15         -test -d $(datadir) || $(mkinstalldirs) $(datadir)
16         -test -d $(dataprogramdir) || $(mkinstalldirs) $(dataprogramdir)
17         -test -d $(datasubdir) || $(mkinstalldirs) $(datasubdir)
18         if test -f /usr/lib/eign; then \
19           rm -f $(common_words_file); \
20           ln -s /usr/lib/eign $(common_words_file) 2>/dev/null \
21           || ln /usr/lib/eign $(common_words_file) 2>/dev/null \
22           || cp /usr/lib/eign $(common_words_file); \
23         else \
24           rm -f $(common_words_file); \
25           $(INSTALL_DATA) $(srcdir)/eign $(common_words_file); \
26         fi
27
28 uninstall_sub:
29         -rm -f $(common_words_file)