void-packages/srcpkgs/elfkickers/patches/elfkickers-3.2-install.patch

25 lines
662 B
Diff
Raw Normal View History

--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
# The top-level makefile simply invokes all the other makefiles
-prefix = /usr/local
-
PROGRAMS = elfls objres rebind sstrip elftoc ebfc infect
all: $(PROGRAMS)
@@ -24,10 +22,9 @@
infect: bin/infect doc/infect.1
install: $(PROGRAMS)
- mkdir -p $(prefix)/bin
- cp bin/* $(prefix)/bin/.
- mkdir -p $(prefix)/share/man/man1
- cp doc/* $(prefix)/share/man/man1/.
+ install -d $(DESTDIR)$(prefix)/bin $(DESTDIR)$(prefix)/share/man/man1
+ install bin/* $(DESTDIR)$(prefix)/bin
+ install -m 644 doc/* $(DESTDIR)$(prefix)/share/man/man1
clean:
for dir in elfrw $(PROGRAMS) ; do $(MAKE) -C$$dir clean ; done