commit 53b04640ebaf5ce0bc85ee04df91637078e82482
map588 <map588@pitt.edu>
2026-09-20 21:25:00 -0400
Create ${PREFIX}/bin on install
make install only created ${PREFIX}, so with a fresh DESTDIR or PREFIX
the following cp turned ${PREFIX}/bin into a copy of bm instead of a
directory, and chmod then failed with "Not a directory".
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 358edd7..f434d7b 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ dist:
install:
@echo installing scripts to ${DESTDIR}${PREFIX}/bin
- @mkdir -p ${DESTDIR}${PREFIX}
+ @mkdir -p ${DESTDIR}${PREFIX}/bin
@cp bm ${DESTDIR}${PREFIX}/bin
@chmod 755 ${DESTDIR}${PREFIX}/bin/bm