blob: c99ac6b2c9df55fb0481fd456337b96d591cb05f (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
$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<n> 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 $@
|