aboutsummaryrefslogtreecommitdiffstats
path: root/irc/scrollz/files/patch-Makefile.in
blob: a382cd307bb5e1463b4f6945e2604faac0bad346 (plain) (blame)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
--- Makefile.in.orig    2011-04-29 17:21:18.000000000 +0900
+++ Makefile.in 2013-03-09 19:35:03.628110600 +0900
@@ -31,14 +31,14 @@
 # @(#)$Id: Makefile.in,v 1.23 2006-10-31 12:31:27 f Exp $
 
 # targets recognised by this makefile:
-#   all, everything    - compiles ircii, ircio, ircflush and wserv
+#   all, everything    - compiles ircii, ircio, ircflush and wservz
 #   ircio      - compiles ircio
 #   ircflush       - compiles ircflush
-#   wserv      - compiles wserv
-#   install        - installs ircii, ircio, ircflush and wserv
+#   wservz     - compiles wservz
+#   install        - installs ircii, ircio, ircflush and wservz
 #   installirc     - installs ircii
 #   installio      - installs ircio
-#   installwserv   - installs wserv
+#   installwservz  - installs wservz
 #   installflush   - installs ircflush
 #   installscript  - installs the scripts
 #   installhelp        - installs the help files
@@ -50,9 +50,9 @@
 prefix = @prefix@
 exec_prefix = @exec_prefix@
 bindir = @bindir@
-sharedir = @prefix@/share
+sharedir = @datadir@
 datarootdir = @datarootdir@
-mandir = @mandir@
+mandir = @mandir@/man1

 DESTDIR =
 
@@ -105,7 +105,7 @@
 
 # This program allows you to use screen/xterm's to put new irc windows
 # on new screen/xterm windows.
-INSTALL_WSERV = $(bindir)/wserv
+INSTALL_WSERVZ = $(bindir)/wservz
 
 # This command will be used to install the irc help files.  If you don't
 # want to install them, replace with the following:
@@ -126,14 +126,13 @@
 VERSION = @VERSION@
 
 SHELL = /bin/sh
-MAKE = make $(MFLAGS)
 MFLAGS ='CC=$(CC)'                 \
    'CFLAGS=$(CFLAGS)'              \
    'DEFS=$(DEFS)'                  \
    'HELP_DIR=$(HELP_DIR)'              \
    'INSTALL_IRC=$(INSTALL_IRC)'            \
    'INSTALL_IRCIO=$(INSTALL_IRCIO)'        \
-   'INSTALL_WSERV=$(INSTALL_WSERV)'        \
+   'INSTALL_WSERVZ=$(INSTALL_WSERVZ)'      \
    'IRCSHARE=$(IRCSHARE)'              \
    'IRCPATH=$(IRC_PATH)'               \
    'LDFLAGS=$(LDFLAGS)'                \
@@ -143,32 +142,23 @@
    'LN=$(LN)'                  \
    'RM=$(RM)'
 
-all: scrollz scrollz.1
+all: scrollz scrollz.1 wservz
 
-install: all installbin installdirs installman installhelp
+install: all installbin installwservz installdirs installman installhelp
 
-scrollz: source/Makefile Makefile
-   @cd source; $(MAKE) all
+scrollz ircio ircflush wservz: source/Makefile Makefile
+   $(MAKE) -C source $(MFLAGS) $@
 
 scrollz.1: scrollz.1.in
    sed -e "s,SHAREDIR,$(IRCSHARE)," < scrollz.1.in > scrollz.1
 
 installeverything:  install installman installflush installio \
-           installwserv installhelp
+           installwservz installhelp
 
-everything: all ircflush ircio wserv
+everything: all ircflush ircio wservz
 
 ircserv: ircio
 
-ircio: source/Makefile
-   @cd source; $(MAKE) ircio
-
-ircflush: source/ircflush.c source/Makefile
-   @cd source; $(MAKE) ircflush
-
-wserv: source/wserv.c source/term.c source/Makefile
-   @cd source; $(MAKE) wserv
-
 installbin: installirc
 
 installirc: scrollz installdirs
@@ -189,8 +179,8 @@
 installflush: ircflush installdirs
    $(INSTALL) source/ircflush $(DESTDIR)/$(INSTALL_IRCFLUSH)
 
-installwserv: wserv installdirs
-   $(INSTALL) source/wserv $(DESTDIR)/$(INSTALL_WSERV)
+installwservz: wservz installdirs
+   $(INSTALL) source/wservz $(DESTDIR)/$(INSTALL_WSERVZ)
 
 installdirs:
    umask 022; ./mkinstalldirs $(DESTDIR)/$(IRCSHARE) $(DESTDIR)/$(bindir) \