Menu

#6 DESTDIR functionality missing

open
nobody
None
5
2015-01-15
2008-05-07
No

Hello!

The attached patch adds DESTDIR functionality to zip.

Kind Regards

Andreas Florath

--- zip-2.3.2_orig/unix/Makefile 2006-04-23 01:52:18.000000000 +0200
+++ zip-2.3.2/unix/Makefile 2008-05-07 14:42:30.000000000 +0200
@@ -127,12 +127,12 @@

# install
install: $(ZIPS)
- -$(INSTALL_D) $(BINDIR)
- $(INSTALL_PROGRAM) $(ZIPS) $(BINDIR)
- -cd $(BINDIR); $(CHMOD) $(BINFLAGS) $(ZIPS)
- -$(INSTALL_D) $(MANDIR)
- $(INSTALL) man/zip.1 $(MANDIR)/zip.$(manext)
- $(CHMOD) $(MANFLAGS) $(MANDIR)/zip.$(manext)
+ -$(INSTALL_D) $(DESTDIR)$(BINDIR)
+ $(INSTALL_PROGRAM) $(ZIPS) $(DESTDIR)$(BINDIR)
+ -cd $(DESTDIR)$(BINDIR); $(CHMOD) $(BINFLAGS) $(ZIPS)
+ -$(INSTALL_D) $(DESTDIR)$(MANDIR)
+ $(INSTALL) man/zip.1 $(DESTDIR)$(MANDIR)/zip.$(manext)
+ $(CHMOD) $(MANFLAGS) $(DESTDIR)$(MANDIR)/zip.$(manext)

uninstall:
-cd $(BINDIR); rm -f $(ZIPS)

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.