source:
scripts/patches/zlib-1.2.2-add_DESTDIR-1.patch@
f35399d3
Last change on this file since f35399d3 was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.3 KB |
-
zlib-1.2.2/Makefile.
old new 23 23 #CFLAGS=-g -DDEBUG 24 24 #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \ 25 25 # -Wstrict-prototypes -Wmissing-prototypes 26 26 DESTDIR= 27 27 LDFLAGS=libz.a 28 28 LDSHARED=$(CC) 29 29 CPP=$(CC) -E … … 90 90 $(CC) $(CFLAGS) -o $@ minigzip.o $(LDFLAGS) 91 91 92 92 install: $(LIBS) 93 -@if [ ! -d $( exec_prefix) ]; then mkdir -p$(exec_prefix); fi94 -@if [ ! -d $( includedir) ]; then mkdir -p$(includedir); fi95 -@if [ ! -d $( libdir) ]; then mkdir -p$(libdir); fi96 -@if [ ! -d $( man3dir) ]; then mkdir -p$(man3dir); fi97 cp zlib.h zconf.h $( includedir)98 chmod 644 $( includedir)/zlib.h$(includedir)/zconf.h99 cp $(LIBS) $( libdir)100 cd $( libdir); chmod 755 $(LIBS)101 -@(cd $( libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1102 cd $( libdir); if test -f $(SHAREDLIBV); then \93 -@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi 94 -@if [ ! -d $(DESTDIR)$(includedir) ]; then mkdir -p $(DESTDIR)$(includedir); fi 95 -@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi 96 -@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi 97 cp zlib.h zconf.h $(DESTDIR)$(includedir) 98 chmod 644 $(DESTDIR)$(includedir)/zlib.h $(DESTDIR)$(includedir)/zconf.h 99 cp $(LIBS) $(DESTDIR)$(libdir) 100 cd $(DESTDIR)$(libdir); chmod 755 $(LIBS) 101 -@(cd $(DESTDIR)$(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1 102 cd $(DESTDIR)$(libdir); if test -f $(SHAREDLIBV); then \ 103 103 rm -f $(SHAREDLIB) $(SHAREDLIBM); \ 104 104 ln -s $(SHAREDLIBV) $(SHAREDLIB); \ 105 105 ln -s $(SHAREDLIBV) $(SHAREDLIBM); \ 106 106 (ldconfig || true) >/dev/null 2>&1; \ 107 107 fi 108 cp zlib.3 $( man3dir)109 chmod 644 $( man3dir)/zlib.3108 cp zlib.3 $(DESTDIR)$(man3dir) 109 chmod 644 $(DESTDIR)$(man3dir)/zlib.3 110 110 # The ranlib in install is needed on NeXTSTEP which checks file times 111 111 # ldconfig is for Linux 112 112 113 113 uninstall: 114 cd $( includedir); \115 cd $( libdir); rm -f libz.a; \114 cd $(DESTDIR)$(includedir); \ 115 cd $(DESTDIR)$(libdir); rm -f libz.a; \ 116 116 if test -f $(SHAREDLIBV); then \ 117 117 rm -f $(SHAREDLIBV) $(SHAREDLIB) $(SHAREDLIBM); \ 118 118 fi 119 cd $( man3dir); rm -f zlib.3119 cd $(DESTDIR)$(man3dir); rm -f zlib.3 120 120 121 121 mostlyclean: clean 122 122 clean:
Note:
See TracBrowser
for help on using the repository browser.