blob: 089173415248bf376679de180688f2df5575e237 (
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
|
--- Makefile.orig Tue Dec 5 06:58:28 2000
+++ Makefile Wed Jun 13 10:02:47 2001
@@ -10,7 +10,7 @@
LDLIBS =
-CFLAGS = -Wall -pedantic -O2 -D$(DB)
+CFLAGS += -Wall -pedantic -D$(DB)
LDFLAGS =
OBJS =\
@@ -21,20 +21,26 @@
tabstop.o unix.o word2text.o 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
clean:
rm -f $(OBJS)
- rm -f $(PROGS)
+ rm -f $(PROGS) $(SCRIPTS)
antiword: $(OBJS)
@rm -f $@
|