aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2022-03-10 22:01:44 +0100
committerGuilhem Moulin <guilhem@fripost.org>2022-03-10 22:01:44 +0100
commit041cf66df44f191c6117c22c4c815e7ef1486a68 (patch)
tree83328acad2030e03b4ba7d4e8e45e8c9db32e240
parent8ad5e5a218253a76eabf36bfd83f9e1a2a708377 (diff)
Replace '$(dir $@)' with '$(@D)' in Makefile.
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 1d09ff2..5ecff73 100644
--- a/Makefile
+++ b/Makefile
@@ -26,18 +26,18 @@ manual: $(MANUAL_FILES)
html: $(HTML_FILES)
$(PROGRAMS): $(builddir)/%: $(srcdir)/%
- @mkdir -vp $(dir $@)
+ @mkdir -vp -- $(@D)
perl -Te "print \"\$$_\\0\" foreach @INC;" | grep -Fxzq -e "$(sitelib)" && prefix="#" || prefix=""; \
sed -r "0,/^(use\\s+\lib\\s+)([\"'])[^\"']*\\2\\s*;/ s||$$prefix\\1\"$(sitelib)\";|" <"$<" >"$@"
chmod --reference="$<" -- "$@"
# upper case the headers and remove the links
$(MANUAL_FILES): $(builddir)/doc/%: $(srcdir)/doc/%.md
- @mkdir -vp $(dir $@)
+ @mkdir -vp -- $(@D)
pandoc -f markdown -t json -- "$<" | $(srcdir)/pandoc2man.jq | pandoc -s -f json -t man -o "$@"
$(SERVICE_FILES): $(builddir)/%.service: $(srcdir)/%.service
- @mkdir -vp $(dir $@)
+ @mkdir -vp -- $(@D)
sed "s|@bindir@|$(bindir)|" <"$<" >"$@"
testcerts:
@@ -74,7 +74,7 @@ release:
git -C $(srcdir) tag -sm "Release version $$VERS" "v$$VERS"
$(HTML_FILES): $(builddir)/doc/%.html: $(srcdir)/doc/%.md $(HTML_TEMPLATE)
- @mkdir -vp $(dir $@)
+ @mkdir -vp -- $(@D)
mtime="$$(git -C $(srcdir) --no-pager log -1 --pretty="format:%ct" -- "$<" 2>/dev/null)"; \
[ -n "$$mtime" ] || mtime="$$(date +%s -r "$<")"; \
pandoc -sp -f markdown -t html+smart --css=$(CSS) --template=$(HTML_TEMPLATE) \