fix typo in UnistallDev
[openwrt.git] / package / comgt / patches / 001-Makefile.patch
1 diff -rhNp comgt.0.32/Makefile gcom-032/Makefile
2 *** comgt.0.32/Makefile 2007-02-10 19:07:58.723709368 +0100
3 --- gcom-032/Makefile 2007-02-10 19:18:26.764232696 +0100
4 ***************
5 *** 1,7 ****
6 #
7 ! # Makefile - build and install the comgt package
8 # Copyright (C) 2005 Martin Gregorie
9 - # Copyright (C) 2006 Paul Hardwick
10 #
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 --- 1,6 ----
14 #
15 ! # Makefile - build and install the gmon package
16 # Copyright (C) 2005 Martin Gregorie
17 #
18 # This program is free software; you can redistribute it and/or modify
19 # it under the terms of the GNU General Public License as published by
20 ***************
21 *** 17,79 ****
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #
25 ! # martin@gregorie.org, paul@peck.org.uk
26 #
27 ! # $Id: Makefile,v 1.4 2006/10/20 14:30:19 pharscape Exp $
28 #
29 - #
30 -
31 - LIB = -L/usr/local/lib
32 - INC = -I/usr/local/include
33 EXE = /usr/local/bin
34 MAN = /usr/share/man/man1
35 ! CPROG = comgt
36 ! SCRIPTPATH = /etc/comgt/
37 ! SCRIPTSRC = ./scripts/
38 ! BIN = $(CPROG)
39 ! MANP = comgt.1 sigmon.1
40 !
41 ! CFLAGS = -c
42 ! LDFLAGS =
43
44 all: $(BIN)
45
46 install:
47 chmod a-w $(BIN)
48 chmod u+rw $(BIN)
49 chmod a+x $(BIN)
50 ! cp $(BIN) $(EXE)
51 chmod a-wx $(MANP)
52 chmod u+rw $(MANP)
53 chmod a+r $(MANP)
54 cp $(MANP) $(MAN)
55 - -mkdir $(SCRIPTPATH)
56 - chmod a-w $(SCRIPTPATH)
57 - chmod u+rw $(SCRIPTPATH)
58 - chmod a+x $(SCRIPTPATH)
59 - cp -f $(SCRIPTSRC)* $(SCRIPTPATH)
60 - chmod a-w $(SCRIPTPATH)*
61 - chmod u+rw $(SCRIPTPATH)*
62 - chmod a+x $(SCRIPTPATH)*
63 -
64 -
65 -
66
67 uninstall:
68 cd $(EXE); rm $(BIN)
69 cd $(MAN); rm $(MANP)
70 - -rm -r $(SCRIPTPATH)
71
72 clean:
73 ! -rm *.o
74 ! -rm $(CPROG)
75 ! -rm *~
76 ! -rm $(SCRIPTSRC)*~
77
78
79 ! comgt: comgt.o
80 ! cc comgt.o $(LDFLAGS) -o comgt
81
82 ! comgt.o: comgt.c comgt.h
83 ! cc comgt.c $(CFLAGS)
84
85 --- 16,56 ----
86 # along with this program; if not, write to the Free Software
87 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
88 #
89 ! # martin@gregorie.org
90 #
91 ! # $Id$
92 #
93 EXE = /usr/local/bin
94 MAN = /usr/share/man/man1
95 ! CPROG = gcom
96 ! SCRIPT = sigmon
97 ! BIN = $(CPROG) $(SCRIPT)
98 ! MANP = gcom.1 sigmon.1
99
100 all: $(BIN)
101
102 install:
103 + mv ($BIN} {$BIN2}
104 chmod a-w $(BIN)
105 chmod u+rw $(BIN)
106 chmod a+x $(BIN)
107 ! cp $(BIN) $(EXE)/gcom
108 chmod a-wx $(MANP)
109 chmod u+rw $(MANP)
110 chmod a+r $(MANP)
111 cp $(MANP) $(MAN)
112
113 uninstall:
114 cd $(EXE); rm $(BIN)
115 cd $(MAN); rm $(MANP)
116
117 clean:
118 ! rm *.o $(CPROG)
119
120
121 ! gcom: gcom.o
122 ! $(CC) gcom.o $(LDFLAGS) -o gcom
123
124 ! gcom.o: comgt.c comgt.h
125 ! $(CC) -c $(CFLAGS) comgt.c -o gcom.o
126
This page took 0.041747 seconds and 5 git commands to generate.