Add script to compile/install/distribute antiword
[msysgit.git] / src / antiword / patches / 0002-antiword-Tweak-Makefile.Linux-for-msysGit.patch
bloba4700c14be22e9297de2c34762fba47eac212b77
1 From c1b802eeb0307db3e90bd2fca702256652331758 Mon Sep 17 00:00:00 2001
2 From: Kirill Smelkov <kirr@mns.spb.ru>
3 Date: Wed, 10 Nov 2010 20:02:19 +0300
4 Subject: [PATCH 2/4] antiword: Tweak Makefile.Linux for msysGit
6 It is easier to start from Makefile.Linux because even if there is
7 Makefile.cygming as we'll see in later patches, it does not serve our purposes
8 well - we'll still need to change installed location and runtime path for
9 resources...
11 Also we don't need kantiword, and /usr/local/bin/ -> /usr/bin/
13 Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
14 ---
15 Makefile.Linux | 8 ++++----
16 1 files changed, 4 insertions(+), 4 deletions(-)
18 diff --git a/Makefile.Linux b/Makefile.Linux
19 index eeb2d15..65af1df 100644
20 --- a/Makefile.Linux
21 +++ b/Makefile.Linux
22 @@ -30,13 +30,13 @@ OBJS =\
23 wordlib.o wordmac.o wordole.o wordwin.o xmalloc.o xml.o
25 PROGS =\
26 - antiword\
27 - kantiword
28 + antiword.exe
29 +# kantiword
31 LOCAL_INSTALL_DIR = $(HOME)/bin
32 LOCAL_RESOURCES_DIR = $(HOME)/.antiword
34 -GLOBAL_INSTALL_DIR = /usr/local/bin
35 +GLOBAL_INSTALL_DIR = /usr/bin
36 GLOBAL_RESOURCES_DIR = /usr/share/antiword
38 all: $(PROGS)
39 @@ -71,7 +71,7 @@ clean:
40 rm -f $(OBJS)
41 rm -f $(PROGS)
43 -antiword: $(OBJS)
44 +antiword.exe: $(OBJS)
45 @rm -f $@
46 $(LD) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
47 @chmod 750 $@
48 --
49 1.7.3.2.245.g03276