Initial import from FreeBSD RELENG_4:
[games.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.cc
10 CSRCS=\
11   $(srcdir)/signal.c
12 NAMEPREFIX=$(g)
13
14 install_data: 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)