summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-09 17:49:55 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-09 18:00:22 (EDT)
commitb4b47cf2835010c49d052bc10918b49266e7f973 (patch)
tree46c6dfc1543fd1adc0a02910a4242426725173d6 /Makefile.in
parent074199e0b84d19fbad952504d97d76f324242ee6 (diff)
Makefile.in: Remove some unnecessary sed commands.
For some reason, when refactoring the build system, I thought comment characters ("#") couldn't be used in makefile commands. They can't be used in macro definitions, though.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 3a7bde9..bd89464 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -186,7 +186,7 @@ install-archtab:
@mkdir -p '$(DESTDIR)/$(archtabdir)'
@set -e; for f in $(archtab); do \
printf ' INSTALL %s\n' "$${f}"; \
- ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \
+ ff="$${f#*/}"; \
mkdir -p "$(DESTDIR)/$(archtabdir)/$${ff%/?*}"; \
cp "$(srcdir)/$${f}" "$(DESTDIR)/$(archtabdir)/$${ff}"; \
chmod 644 "$(DESTDIR)/$(archtabdir)/$${ff}"; \
@@ -222,7 +222,7 @@ uninstall-locale:
uninstall-archtab:
@set -e; for f in $(archtab); do \
printf ' RM %s\n' "$${f}"; \
- ff="$$(printf '%s' "$${f}" | sed 's|^[^/]*/||')"; \
+ ff="$${f#*/}"; \
rm -f "$(DESTDIR)/$(archtabdir)/$${ff}"; \
rmdir "$(DESTDIR)/$(archtabdir)/$${ff%/?*}" 2>/dev/null || \
true; \