|
1 --- zlib-1.2.3/Makefile.in.orig |
|
2 +++ zlib-1.2.3/Makefile.in |
|
3 @@ -90,23 +90,23 @@ |
|
4 $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) |
|
5 |
|
6 install: $(LIBS) |
|
7 - -@if [ ! -d $(exec_prefix) ]; then mkdir -p $(exec_prefix); fi |
|
8 - -@if [ ! -d $(includedir) ]; then mkdir -p $(includedir); fi |
|
9 - -@if [ ! -d $(libdir) ]; then mkdir -p $(libdir); fi |
|
10 - -@if [ ! -d $(man3dir) ]; then mkdir -p $(man3dir); fi |
|
11 - cp zlib.h zconf.h $(includedir) |
|
12 - chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h |
|
13 - cp $(LIBS) $(libdir) |
|
14 - cd $(libdir); chmod 755 $(LIBS) |
|
15 - -@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 |
|
16 - cd $(libdir); if test -f $(SHAREDLIBV); then \ |
|
17 + -@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi |
|
18 + -@if [ ! -d $(DESTDIR)$(includedir) ]; then mkdir -p $(DESTDIR)$(includedir); fi |
|
19 + -@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi |
|
20 + -@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi |
|
21 + cp zlib.h zconf.h $(DESTDIR)$(includedir) |
|
22 + chmod 644 $(DESTDIR)$(includedir)/zlib.h $(DESTDIR)$(includedir)/zconf.h |
|
23 + cp $(LIBS) $(DESTDIR)$(libdir) |
|
24 + cd $(DESTDIR)$(libdir); chmod 755 $(LIBS) |
|
25 + -@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 |
|
26 + cd $(DESTDIR)$(libdir); if test -f $(SHAREDLIBV); then \ |
|
27 rm -f $(SHAREDLIB) $(SHAREDLIBM); \ |
|
28 ln -s $(SHAREDLIBV) $(SHAREDLIB); \ |
|
29 ln -s $(SHAREDLIBV) $(SHAREDLIBM); \ |
|
30 (ldconfig || true) >/dev/null 2>&1; \ |
|
31 fi |
|
32 - cp zlib.3 $(man3dir) |
|
33 - chmod 644 $(man3dir)/zlib.3 |
|
34 + cp zlib.3 $(DESTDIR)$(man3dir) |
|
35 + chmod 644 $(DESTDIR)$(man3dir)/zlib.3 |
|
36 # The ranlib in install is needed on NeXTSTEP which checks file times |
|
37 # ldconfig is for Linux |
|
38 |