1 | | Index: moira/Makefile.in |
---|
2 | | =================================================================== |
---|
3 | | --- moira.orig/Makefile.in |
---|
4 | | +++ moira/Makefile.in |
---|
5 | | @@ -35,11 +35,11 @@ |
---|
6 | | @for d in $(SUBDIRS); do (echo "### Making $@ in $$d"; cd $$d; $(MAKE) $@) || exit 1; done |
---|
7 | | |
---|
8 | | install: |
---|
9 | | - $(srcdir)/mkinstalldirs $(bindir) $(sbindir) $(mrbindir) $(mandir) |
---|
10 | | + $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir) |
---|
11 | | @for d in $(SUBDIRS); do (echo "### Making $@ in $$d"; cd $$d; $(MAKE) $@) || exit 1; done |
---|
12 | | |
---|
13 | | svrinstall: |
---|
14 | | - $(srcdir)/mkinstalldirs $(mrbindir) |
---|
15 | | + $(srcdir)/mkinstalldirs $(DESTDIR)$(mrbindir) |
---|
16 | | @for d in $(SVRDIRS); do (echo "### Making install in $$d"; cd $$d; $(MAKE) install) || exit 1; done |
---|
17 | | |
---|
18 | | world: depend all |
---|
19 | | Index: moira/clients/addusr/Makefile.in |
---|
20 | | =================================================================== |
---|
21 | | --- moira.orig/clients/addusr/Makefile.in |
---|
22 | | +++ moira/clients/addusr/Makefile.in |
---|
23 | | @@ -40,7 +40,7 @@ |
---|
24 | | depend: |
---|
25 | | |
---|
26 | | install: all |
---|
27 | | - $(INSTALL_PROGRAM) -m 755 addusr $(bindir) |
---|
28 | | + $(INSTALL_PROGRAM) -m 755 addusr $(DESTDIR)$(bindir) |
---|
29 | | |
---|
30 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
31 | | $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) |
---|
32 | | Index: moira/clients/blanche/Makefile.in |
---|
33 | | =================================================================== |
---|
34 | | --- moira.orig/clients/blanche/Makefile.in |
---|
35 | | +++ moira/clients/blanche/Makefile.in |
---|
36 | | @@ -40,7 +40,7 @@ |
---|
37 | | depend: |
---|
38 | | |
---|
39 | | install: all |
---|
40 | | - $(INSTALL_PROGRAM) blanche $(bindir) |
---|
41 | | + $(INSTALL_PROGRAM) blanche $(DESTDIR)$(bindir) |
---|
42 | | |
---|
43 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
44 | | $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) |
---|
45 | | Index: moira/clients/chfn/Makefile.in |
---|
46 | | =================================================================== |
---|
47 | | --- moira.orig/clients/chfn/Makefile.in |
---|
48 | | +++ moira/clients/chfn/Makefile.in |
---|
49 | | @@ -40,7 +40,7 @@ |
---|
50 | | depend: |
---|
51 | | |
---|
52 | | install: all |
---|
53 | | - $(INSTALL_PROGRAM) $(TARGET) $(bindir) |
---|
54 | | + $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir) |
---|
55 | | |
---|
56 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
57 | | $(CC) -o $@ $(LDFLAGS) $@.o $(LIBS) |
---|
58 | | Index: moira/clients/chpobox/Makefile.in |
---|
59 | | =================================================================== |
---|
60 | | --- moira.orig/clients/chpobox/Makefile.in |
---|
61 | | +++ moira/clients/chpobox/Makefile.in |
---|
62 | | @@ -40,7 +40,7 @@ |
---|
63 | | depend: |
---|
64 | | |
---|
65 | | install: all |
---|
66 | | - $(INSTALL_PROGRAM) $(TARGET) $(bindir) |
---|
67 | | + $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir) |
---|
68 | | |
---|
69 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
70 | | $(CC) -o $@ $(LDFLAGS) $@.o $(LIBS) |
---|
71 | | Index: moira/clients/chsh/Makefile.in |
---|
72 | | =================================================================== |
---|
73 | | --- moira.orig/clients/chsh/Makefile.in |
---|
74 | | +++ moira/clients/chsh/Makefile.in |
---|
75 | | @@ -40,7 +40,7 @@ |
---|
76 | | depend: |
---|
77 | | |
---|
78 | | install: all |
---|
79 | | - $(INSTALL_PROGRAM) $(TARGET) $(bindir) |
---|
80 | | + $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir) |
---|
81 | | |
---|
82 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
83 | | $(CC) -o $@ $(LDFLAGS) $@.o $(LIBS) |
---|
84 | | Index: moira/clients/mailmaint/Makefile.in |
---|
85 | | =================================================================== |
---|
86 | | --- moira.orig/clients/mailmaint/Makefile.in |
---|
87 | | +++ moira/clients/mailmaint/Makefile.in |
---|
88 | | @@ -40,7 +40,7 @@ |
---|
89 | | depend: |
---|
90 | | |
---|
91 | | install: all |
---|
92 | | - $(INSTALL_PROGRAM) mailmaint $(bindir) |
---|
93 | | + $(INSTALL_PROGRAM) mailmaint $(DESTDIR)$(bindir) |
---|
94 | | |
---|
95 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
96 | | $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) |
---|
97 | | Index: moira/clients/mitch/Makefile.in |
---|
98 | | =================================================================== |
---|
99 | | --- moira.orig/clients/mitch/Makefile.in |
---|
100 | | +++ moira/clients/mitch/Makefile.in |
---|
101 | | @@ -40,7 +40,7 @@ |
---|
102 | | depend: |
---|
103 | | |
---|
104 | | install: all |
---|
105 | | - $(INSTALL_PROGRAM) mitch $(bindir) |
---|
106 | | + $(INSTALL_PROGRAM) mitch $(DESTDIR)$(bindir) |
---|
107 | | |
---|
108 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
109 | | $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) |
---|
110 | | Index: moira/clients/moira/Makefile.in |
---|
111 | | =================================================================== |
---|
112 | | --- moira.orig/clients/moira/Makefile.in |
---|
113 | | +++ moira/clients/moira/Makefile.in |
---|
114 | | @@ -44,14 +44,14 @@ |
---|
115 | | depend: |
---|
116 | | |
---|
117 | | install: all |
---|
118 | | - $(INSTALL_PROGRAM) namespace $(bindir) |
---|
119 | | - $(INSTALL_PROGRAM) moira $(bindir) |
---|
120 | | - rm -f $(bindir)/listmaint |
---|
121 | | - ln -s moira $(bindir)/listmaint |
---|
122 | | - rm -f $(bindir)/dcmmaint |
---|
123 | | - ln -s moira $(bindir)/dcmmaint |
---|
124 | | - rm -f $(bindir)/usermaint |
---|
125 | | - ln -s moira $(bindir)/usermaint |
---|
126 | | + $(INSTALL_PROGRAM) namespace $(DESTDIR)$(bindir) |
---|
127 | | + $(INSTALL_PROGRAM) moira $(DESTDIR)$(bindir) |
---|
128 | | + rm -f $(DESTDIR)$(bindir)/listmaint |
---|
129 | | + ln -s moira $(DESTDIR)$(bindir)/listmaint |
---|
130 | | + rm -f $(DESTDIR)$(bindir)/dcmmaint |
---|
131 | | + ln -s moira $(DESTDIR)$(bindir)/dcmmaint |
---|
132 | | + rm -f $(DESTDIR)$(bindir)/usermaint |
---|
133 | | + ln -s moira $(DESTDIR)$(bindir)/usermaint |
---|
134 | | |
---|
135 | | moira: $(MOBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
136 | | $(CC) -o $@ $(LDFLAGS) $(MOBJS) $(LIBS) |
---|
137 | | Index: moira/clients/mrcheck/Makefile.in |
---|
138 | | =================================================================== |
---|
139 | | --- moira.orig/clients/mrcheck/Makefile.in |
---|
140 | | +++ moira/clients/mrcheck/Makefile.in |
---|
141 | | @@ -40,7 +40,7 @@ |
---|
142 | | depend: |
---|
143 | | |
---|
144 | | install: all |
---|
145 | | - $(INSTALL_PROGRAM) mrcheck $(bindir) |
---|
146 | | + $(INSTALL_PROGRAM) mrcheck $(DESTDIR)$(bindir) |
---|
147 | | |
---|
148 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
149 | | $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) |
---|
150 | | Index: moira/clients/mrtest/Makefile.in |
---|
151 | | =================================================================== |
---|
152 | | --- moira.orig/clients/mrtest/Makefile.in |
---|
153 | | +++ moira/clients/mrtest/Makefile.in |
---|
154 | | @@ -40,7 +40,7 @@ |
---|
155 | | depend: |
---|
156 | | |
---|
157 | | install: all |
---|
158 | | - $(INSTALL_PROGRAM) mrtest $(bindir) |
---|
159 | | + $(INSTALL_PROGRAM) mrtest $(DESTDIR)$(bindir) |
---|
160 | | |
---|
161 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
162 | | $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) |
---|
163 | | Index: moira/clients/stanley/Makefile.in |
---|
164 | | =================================================================== |
---|
165 | | --- moira.orig/clients/stanley/Makefile.in |
---|
166 | | +++ moira/clients/stanley/Makefile.in |
---|
167 | | @@ -40,7 +40,7 @@ |
---|
168 | | depend: |
---|
169 | | |
---|
170 | | install: all |
---|
171 | | - $(INSTALL_PROGRAM) stanley $(bindir) |
---|
172 | | + $(INSTALL_PROGRAM) stanley $(DESTDIR)$(bindir) |
---|
173 | | |
---|
174 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
175 | | $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) |
---|
176 | | Index: moira/clients/stella/Makefile.in |
---|
177 | | =================================================================== |
---|
178 | | --- moira.orig/clients/stella/Makefile.in |
---|
179 | | +++ moira/clients/stella/Makefile.in |
---|
180 | | @@ -40,7 +40,7 @@ |
---|
181 | | depend: |
---|
182 | | |
---|
183 | | install: all |
---|
184 | | - $(INSTALL_PROGRAM) stella $(bindir) |
---|
185 | | + $(INSTALL_PROGRAM) stella $(DESTDIR)$(bindir) |
---|
186 | | |
---|
187 | | $(TARGET): $(OBJS) ../lib/libmrclient.a $(MR_LIBDEP) |
---|
188 | | $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS) |
---|
189 | | Index: moira/man/Makefile.in |
---|
190 | | =================================================================== |
---|
191 | | --- moira.orig/man/Makefile.in |
---|
192 | | +++ moira/man/Makefile.in |
---|
193 | | @@ -32,6 +32,7 @@ |
---|
194 | | depend: |
---|
195 | | |
---|
196 | | install: |
---|
197 | | - for m in $(MAN1); do $(INSTALL_DATA) $(srcdir)/$$m $(mandir)/man1; done |
---|
198 | | - for m in $(MAN3); do $(INSTALL_DATA) $(srcdir)/$$m $(mandir)/man3; done |
---|
199 | | - for m in $(MAN8); do $(INSTALL_DATA) $(srcdir)/$$m $(mandir)/man8; done |
---|
200 | | + $(srcdir)/../mkinstalldirs $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man3 $(DESTDIR)$(mandir)/man8 |
---|
201 | | + for m in $(MAN1); do $(INSTALL_DATA) $(srcdir)/$$m $(DESTDIR)$(mandir)/man1; done |
---|
202 | | + for m in $(MAN3); do $(INSTALL_DATA) $(srcdir)/$$m $(DESTDIR)$(mandir)/man3; done |
---|
203 | | + for m in $(MAN8); do $(INSTALL_DATA) $(srcdir)/$$m $(DESTDIR)$(mandir)/man8; done |
---|
204 | | Index: moira/update/Makefile.in |
---|
205 | | =================================================================== |
---|
206 | | --- moira.orig/update/Makefile.in |
---|
207 | | +++ moira/update/Makefile.in |
---|
208 | | @@ -43,8 +43,8 @@ |
---|
209 | | depend: |
---|
210 | | |
---|
211 | | install: all |
---|
212 | | - $(INSTALL_PROGRAM) update_test $(bindir) |
---|
213 | | - $(INSTALL_PROGRAM) update_server $(sbindir) |
---|
214 | | + $(INSTALL_PROGRAM) update_test $(DESTDIR)$(bindir) |
---|
215 | | + $(INSTALL_PROGRAM) update_server $(DESTDIR)$(sbindir) |
---|
216 | | |
---|
217 | | update_test: $(COBJS) $(MR_LIBDEP) |
---|
218 | | $(CC) -o $@ $(LDFLAGS) $(COBJS) $(LIBS) |
---|