$NetBSD: patch-aa,v 1.5 2001/10/17 08:43:25 lukem Exp $ --- Makefile.orig Sun Jul 22 05:58:03 2001 +++ Makefile Wed Oct 17 18:31:16 2001 @@ -8,7 +8,7 @@ # must be equal to DEBUG or NDEBUG DB = NDEBUG # Optimization: -O or debugging: -g -OPT = -O2 +OPT = LDLIBS = @@ -24,20 +24,30 @@ wordlib.o xmalloc.o PROGS =\ - antiword\ + antiword +SCRIPTS =\ kantiword -INSTALL_DIR = $(HOME)/bin +INSTALL_DIR = ${PREFIX}/bin -all: $(PROGS) +all: $(PROGS) $(SCRIPTS) install: all - [ -d $(INSTALL_DIR) ] || mkdir $(INSTALL_DIR) - cp -pf $(PROGS) $(INSTALL_DIR) + ${BSD_INSTALL_PROGRAM} ${PROGS} ${INSTALL_DIR} + ${BSD_INSTALL_SCRIPT} ${SCRIPTS} ${INSTALL_DIR} + ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/doc/antiword +.for file in COPYING ChangeLog FAQ History Netscape QandA ReadMe + ${BSD_INSTALL_DATA} Docs/${file} ${PREFIX}/share/doc/antiword +.endfor + ${BSD_INSTALL_MAN} Docs/antiword.1 ${PREFIX}/man/man1/antiword.1 + ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/antiword + for i in Resources/* ; do \ + ${BSD_INSTALL_DATA} $$i ${PREFIX}/share/antiword ; \ + done clean: rm -f $(OBJS) - rm -f $(PROGS) + rm -f $(PROGS) $(SCRIPTS) antiword: $(OBJS) @rm -f $@