Skip to contentSkip to conversation

Makefile: fixed for-loop in install receipe

PATCH New Joshua DeWeese 1 participant 1 message May 29, 2019 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: fixed for-loop in install receipe

From: Joshua DeWeese <[email protected]>

The install receipe would have copied all the manpages to each of the section folders. This change will do what I believe the original author had intended.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 69a1c5a..817a8c1 100644
@@ -23,7 +23,7 @@ install: all
 	for m in $(MANPAGES); \
 	do \
 		install -d $(DESTDIR)$(mandir)/man$${m##*.}; \
-		install -m 644 $(MANPAGES) $(DESTDIR)$(mandir)/man$${m##*.}; \
+		install -m 644 "$$m" $(DESTDIR)$(mandir)/man$${m##*.}; \
 	done
 
 .PHONY: install all
Signature · 1 line
2.7.4