summaryrefslogtreecommitdiff
path: root/src/utils/indxbib/Makefile.sub
blob: add99eba531c728368485d44ecb117c9a62e5bbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PROG=indxbib
MAN1=indxbib.n
XLIBS=$(LIBBIB) $(LIBGROFF)
MLIB=$(LIBM)
OBJS=\
  indxbib.o \
  dirnamemax.o \
  signal.o
CCSRCS=\
  $(srcdir)/indxbib.cc
CSRCS=\
  $(srcdir)/dirnamemax.c \
  $(srcdir)/signal.c
NAMEPREFIX=$(g)

install_data: eign
	-test -d $(datadir) || $(mkinstalldirs) $(datadir)
	-test -d $(dataprogramdir) || $(mkinstalldirs) $(dataprogramdir)
	-test -d $(datasubdir) || $(mkinstalldirs) $(datasubdir)
	if test -f /usr/lib/eign; then \
	  rm -f $(common_words_file); \
	  ln -s /usr/lib/eign $(common_words_file) 2>/dev/null \
	  || ln /usr/lib/eign $(common_words_file) 2>/dev/null \
	  || cp /usr/lib/eign $(common_words_file); \
	else \
	  rm -f $(common_words_file); \
	  $(INSTALL_DATA) $(srcdir)/eign $(common_words_file); \
	fi

uninstall_sub:
	-rm -f $(common_words_file)