Skip to content
Commits on Source (2)
patman (1.2.2+dfsg-6) unstable; urgency=medium
[ Helmut Grohne ]
* Do not hardcode tools in upstream Makefile
Closes: #928447
-- Andreas Tille <tille@debian.org> Tue, 07 May 2019 08:56:07 +0200
patman (1.2.2+dfsg-5) unstable; urgency=medium
* Secure URI in Homepage
......
From: Helmut Grohne <helmut@subdivi.de>
Date: Sat, 4 May 2019 22:19:19 +0200
Bug-Debian: https://bugs.debian.org/928447
Description: Do not hardcode tools in upstream Makefile
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@
prefix := ${HOME}
version := 1.2
+INSTALL ?= install
TARGETS := patman
OBJS := prefix_tree.o fasta.o main.o
CXXFLAGS += -Wall
@@ -19,16 +20,16 @@ LDLIBS += -lpopt
all: $(TARGETS)
patman: $(OBJS)
- g++ $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
+ $(CXX) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
%.o: %.cpp
- g++ -DVERSION="\"$(version)\"" $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
+ $(CXX) -DVERSION="\"$(version)\"" $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
install: $(TARGETS)
- install -d ${prefix}/bin
- install -d ${prefix}/share/man/man1
- install -s -m755 $^ ${prefix}/bin
- install -m644 patman.1 ${prefix}/share/man/man1
+ $(INSTALL) -d ${prefix}/bin
+ $(INSTALL) -d ${prefix}/share/man/man1
+ $(INSTALL) -s -m755 $^ ${prefix}/bin
+ $(INSTALL) -m644 patman.1 ${prefix}/share/man/man1
fasta.o: fasta.h
prefix_tree.o: prefix_tree.h global.h
spelling.patch
makefile.patch
cross.patch