[Pkg-wmaker-commits] [wmrack] 76/97: debian/patches: (update_makefile.patch) Honor LDFLAGS and DESTDIR.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Aug 22 02:42:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmrack.
commit da4844e490ac57de963282c0d8cc60be69849c3f
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Sun Dec 21 22:53:45 2014 -0600
debian/patches: (update_makefile.patch) Honor LDFLAGS and DESTDIR.
---
debian/patches/series | 1 +
debian/patches/update_makefile.patch | 47 ++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
index 2d02dcb..7395101 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ add_format_arg_to_fprintf.patch
update_autotools.patch
fix_hurd_ftbfs.patch
fix_kfreebsd_ftbfs.patch
+update_makefile.patch
diff --git a/debian/patches/update_makefile.patch b/debian/patches/update_makefile.patch
new file mode 100644
index 0000000..9c442b8
--- /dev/null
+++ b/debian/patches/update_makefile.patch
@@ -0,0 +1,47 @@
+Description: Update Makefile.
+ In particular, honor LDFLAGS and DESTDIR.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2014-12-21
+
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -34,20 +34,20 @@
+ (cd XPM; make standart.style)
+
+ wmrack: $(OBJECTS)
+- $(CC) $(OBJECTS) -o $@ $(LIBS)
++ $(CC) $(LDFLAGS) $(OBJECTS) -o $@ $(LIBS)
+
+ install: $(TARGETS) install-bin install-man install-lib
+
+ install-bin:
+- mkdir -p $(BINDIR)
++ mkdir -p $(DESTDIR)$(BINDIR)
+ for prog in $(TARGETS); do \
+- $(INSTALL) $${prog} $(BINDIR) ; \
++ $(INSTALL) $${prog} $(DESTDIR)$(BINDIR) ; \
+ done
+
+ install-man:
+- mkdir -p $(MAN1DIR)
++ mkdir -p $(DESTDIR)$(MAN1DIR)
+ for man in $(MANPAGES); do \
+- $(INSTALL_DATA) $${man} $(MAN1DIR) ; \
++ $(INSTALL_DATA) $${man} $(DESTDIR)$(MAN1DIR) ; \
+ done
+
+ install-lib:
+--- a/XPM/Makefile.in
++++ b/XPM/Makefile.in
+@@ -14,9 +14,9 @@
+ $(LN) grey.style standart.style
+
+ install:
+- mkdir -p $(LIBDIR)
++ mkdir -p $(DESTDIR)$(LIBDIR)
+ for style in *.style; do \
+ if test "$${style}" != "standart.style"; then \
+- $(INSTALL_DATA) $${style} $(LIBDIR); \
++ $(INSTALL_DATA) $${style} $(DESTDIR)$(LIBDIR); \
+ fi \
+ done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmrack.git
More information about the Pkg-wmaker-commits
mailing list