[Pkg-wmaker-commits] [wmgtemp] 26/45: debian/patches/update_makefile.patch: Update install targets to use DESTDIR variable and create binary installation directory.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 25 02:58:06 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmgtemp.

commit a8ff7c566c2b84343a523e770206236f127d1729
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Jan 31 01:58:27 2015 -0600

    debian/patches/update_makefile.patch: Update install targets to use DESTDIR
    variable and create binary installation directory.
---
 debian/patches/series                |  1 +
 debian/patches/update_makefile.patch | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 119fc31..0a12a42 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 000_fix_hypens_in_wmtemp.1.diff
 001_sensors.conf.diff
+update_makefile.patch
diff --git a/debian/patches/update_makefile.patch b/debian/patches/update_makefile.patch
new file mode 100644
index 0000000..0247c80
--- /dev/null
+++ b/debian/patches/update_makefile.patch
@@ -0,0 +1,32 @@
+Description: Update manpage.
+ In particular,
+ - Create binary installation directory.
+ - Honor DESTDIR variable.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-01-31
+
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -21,7 +21,8 @@
+ 	@ $(RM) $(OFILES) *~ "#"* $(BINARY)
+ 
+ install::
+-	$(INSTALL) -m 755 -c $(BINARY) $(INSTDIR)/$(BINARY)
++	$(INSTALL) -d $(DESTDIR)$(INSTDIR)
++	$(INSTALL) -m 755 -c $(BINARY) $(DESTDIR)$(INSTDIR)/$(BINARY)
+ 
+ depend:
+ 	@ $(CC) -MM *.c > .deps
+--- a/Makefile
++++ b/Makefile
+@@ -10,8 +10,8 @@
+ 
+ install:    
+ 	( cd src && $(MAKE) install INSTDIR=$(INSTDIR) )
+-	$(INSTALL) -d $(MANINSTDIR)
+-	$(INSTALL) -m 755 -c $(MANPAGE) $(MANINSTDIR)/$(MANPAGE)
++	$(INSTALL) -d $(DESTDIR)$(MANINSTDIR)
++	$(INSTALL) -m 755 -c $(MANPAGE) $(DESTDIR)$(MANINSTDIR)/$(MANPAGE)
+ 
+ clean:
+ 	( cd src && $(MAKE) clean)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmgtemp.git



More information about the Pkg-wmaker-commits mailing list