memtester/memtester-fix-make-install-path.patch
2022-07-22 03:32:25 +08:00

29 lines
985 B
Diff

diff --color -urN memtester-4.5.1/Makefile memtester-4.5.1-new/Makefile
--- memtester-4.5.1/Makefile 2021-05-31 01:10:52.000000000 +0800
+++ memtester-4.5.1-new/Makefile 2022-07-05 03:32:36.885577441 +0800
@@ -17,7 +17,8 @@
OBJECTS = $(SOURCES:.c=.o)
HEADERS = memtester.h
TARGETS = *.o compile load auto-ccld.sh find-systype make-compile make-load systype extra-libs
-INSTALLPATH = /usr/local
+BINDIR = ${DESTDIR}/usr/bin
+MANDIR = ${DESTDIR}/usr/share/man/man8
#
# Targets
@@ -25,10 +26,10 @@
all: memtester
install: all
- mkdir -m 755 -p $(INSTALLPATH)/bin
- install -m 755 memtester $(INSTALLPATH)/bin/
- mkdir -m 755 -p $(INSTALLPATH)/man/man8
- gzip -c memtester.8 >memtester.8.gz ; install -m 644 memtester.8.gz $(INSTALLPATH)/man/man8/
+ mkdir -m 755 -p $(BINDIR)
+ mkdir -m 755 -p $(MANDIR)
+ install -m 755 memtester $(BINDIR)
+ gzip -c memtester.8 >memtester.8.gz ; install -m 644 memtester.8.gz $(MANDIR)
auto-ccld.sh: \
conf-cc conf-ld warn-auto.sh