Skip to content

Commit

Permalink
strip trailing '/' off of directories
Browse files Browse the repository at this point in the history
Because GNU Make works on strings.  So "foo/" is NOT the same
as "foo", even though they both point to the same directory.
  • Loading branch information
alandekok committed Aug 19, 2019
1 parent eb62b91 commit 16242f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.mk
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ define ADD_INSTALL_RULE.file
install: ${2}

# Install the file
${2}: ${1} | $(dir ${2})
${2}: ${1} | $(patsubst %/,%,$(dir ${2}))
@$(ECHO) INSTALL ${1}
$(Q)$${PROGRAM_INSTALL} -c -m 644 ${1} ${2}

Expand Down

0 comments on commit 16242f1

Please sign in to comment.