]>
Commit | Line | Data |
---|---|---|
ce5ccaef | 1 | --- joe/Makefile.make Thu Dec 11 16:56:01 1997 |
2 | +++ joe/Makefile Thu Dec 11 17:02:19 1997 | |
3 | @@ -9,15 +9,15 @@ | |
4 | # to go and where you want the man page | |
5 | # to go: | |
6 | ||
7 | -WHEREJOE = /usr/bin | |
8 | -WHERERC = /usr/lib/joe | |
9 | -WHEREMAN = /usr/man/man1 | |
10 | +WHEREJOE = $(TOPDIR)/usr/bin | |
11 | +WHERERC = $(TOPDIR)/usr/lib/joe | |
12 | +WHEREMAN = $(TOPDIR)/usr/man/man1 | |
13 | ||
14 | # If you want to use TERMINFO, you have to set | |
15 | # the following variable to 1. Also you have to | |
16 | # include some additional libraries- see below. | |
17 | ||
18 | -TERMINFO = 0 | |
19 | +TERMINFO = 1 | |
20 | ||
21 | # You may also have to add some additional | |
22 | # defines to get the include files to work | |
23 | @@ -26,12 +26,10 @@ | |
24 | # for some HPUX systems, you need to add: -D_HPUX_SOURCE | |
25 | ||
26 | # C compiler options: make's built-in rules use this variable | |
27 | - | |
28 | CFLAGS = $(RPM_OPT_FLAGS) | |
29 | ||
30 | # C compiler to use: make's built-in rules use this variable | |
31 | - | |
32 | -CC = cc | |
33 | +CC = gcc | |
34 | ||
35 | # You may have to include some extra libraries | |
36 | # for some systems | |
37 | @@ -68,53 +66,30 @@ | |
38 | ln joe jpico | |
39 | ||
40 | # All object files depend on config.h | |
41 | - | |
42 | $(OBJS): config.h | |
43 | ||
44 | # How to make config.h | |
45 | - | |
46 | config.h: | |
47 | $(CC) conf.c -o conf | |
48 | ./conf $(WHERERC) $(TERMINFO) | |
49 | ||
50 | # How to make termidx | |
51 | - | |
52 | termidx: termidx.o | |
53 | $(CC) $(CFLAGS) -o termidx termidx.o | |
54 | ||
55 | # Install proceedure | |
56 | - | |
57 | install: joe termidx | |
58 | - strip joe | |
59 | - strip termidx | |
60 | - if [ ! -d $(WHEREJOE) ]; then mkdir $(WHEREJOE); chmod a+rx $(WHEREJOE); fi | |
61 | - rm -f $(WHEREJOE)/joe $(WHEREJOE)/jmacs $(WHEREJOE)/jstar $(WHEREJOE)/jpico $(WHEREJOE)/rjoe | |
62 | - mv joe $(WHEREJOE) | |
63 | - ln $(WHEREJOE)/joe $(WHEREJOE)/jmacs | |
64 | - ln $(WHEREJOE)/joe $(WHEREJOE)/jstar | |
65 | - ln $(WHEREJOE)/joe $(WHEREJOE)/rjoe | |
66 | - ln $(WHEREJOE)/joe $(WHEREJOE)/jpico | |
67 | - if [ ! -d $(WHERERC) ]; then mkdir $(WHERERC); chmod a+rx $(WHERERC); fi | |
68 | - rm -f $(WHERERC)/joerc $(WHERERC)/jmacsrc $(WHERERC)/jstarrc $(WHERERC)/jpicorc $(WHERERC)/rjoerc $(WHEREMAN)/joe.1 | |
69 | - cp joerc $(WHERERC) | |
70 | - cp jmacsrc $(WHERERC) | |
71 | - cp jstarrc $(WHERERC) | |
72 | - cp rjoerc $(WHERERC) | |
73 | - cp jpicorc $(WHERERC) | |
74 | - cp joe.1 $(WHEREMAN) | |
75 | - chmod a+x $(WHEREJOE)/joe | |
76 | - chmod a+x $(WHEREJOE)/jmacs | |
77 | - chmod a+x $(WHEREJOE)/jstar | |
78 | - chmod a+x $(WHEREJOE)/rjoe | |
79 | - chmod a+x $(WHEREJOE)/jpico | |
80 | - chmod a+r $(WHERERC)/joerc | |
81 | - chmod a+r $(WHERERC)/jmacsrc | |
82 | - chmod a+r $(WHERERC)/jstarrc | |
83 | - chmod a+r $(WHERERC)/rjoerc | |
84 | - chmod a+r $(WHERERC)/jpicorc | |
85 | - chmod a+r $(WHEREMAN)/joe.1 | |
86 | + [ ! -d $(WHEREJOE) ] && mkdir -p $(WHEREJOE) | |
87 | + install -s -m0555 joe $(WHEREJOE) | |
88 | + ln -s joe $(WHEREJOE)/jmacs | |
89 | + ln -s joe $(WHEREJOE)/jstar | |
90 | + ln -s joe $(WHEREJOE)/rjoe | |
91 | + ln -s joe $(WHEREJOE)/jpico | |
92 | + [ ! -d $(WHERERC) ] && mkdir -p $(WHERERC) | |
93 | + install -m0644 joerc jmacsrc jstarrc rjoerc jpicorc $(WHERERC) | |
94 | + [ ! -d $(WHEREMAN) ] && mkdir -p $(WHEREMAN) | |
95 | + install -m 0644 joe.1 $(WHEREMAN) | |
96 | ||
97 | # Cleanup proceedure | |
98 | - | |
99 | clean: | |
100 | rm -f $(OBJS) termidx.o conf conf.o config.h |