aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorJuhani Krekelä2025-02-12 18:06:19 +0200
committerWolfgang Müller2025-02-12 17:19:22 +0100
commit623985d13002e99e2780655016281f790a25473c (patch)
tree32801b4e72f8d84ffb20b23e05be82e439abc6b7 /Makefile
parent9e23bc6039b1bec0b431ce681cb769c665c9d42a (diff)
downloadweltschmerz-623985d13002e99e2780655016281f790a25473c.tar.gz
Change Makefile install(1) invocations to work on FreeBSD
Diffstat (limited to '')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 96dad0f..195041c 100644
--- a/Makefile
+++ b/Makefile
@@ -31,16 +31,21 @@ weltschmerz.desktop: weltschmerz.desktop.in
msgfmt --desktop -d po --template weltschmerz.desktop.in -o $@
install: all
- install -D -m 755 -t '${DESTDIR}${BINDIR}' weltschmerz
- install -D -m 644 -t '${DESTDIR}${MANDIR}/man1' weltschmerz.1
- install -D -m 644 -t '${DESTDIR}${DATAROOTDIR}/applications' weltschmerz.desktop
+ install -d '${DESTDIR}${BINDIR}'
+ install -m 755 weltschmerz '${DESTDIR}${BINDIR}'
+ install -d '${DESTDIR}${MANDIR}/man1'
+ install -m 644 weltschmerz.1 '${DESTDIR}${MANDIR}/man1'
+ install -d '${DESTDIR}${DATAROOTDIR}/applications'
+ install -m 644 weltschmerz.desktop '${DESTDIR}${DATAROOTDIR}/applications'
for mo in $(MOFILES); do \
lang=$$(basename "$$mo" .mo); \
- install -D -m 644 "$$mo" "${DESTDIR}${LOCALEDIR}/$$lang/LC_MESSAGES/weltschmerz.mo"; \
+ install -d "${DESTDIR}${LOCALEDIR}/$$lang/LC_MESSAGES"; \
+ install -m 644 "$$mo" "${DESTDIR}${LOCALEDIR}/$$lang/LC_MESSAGES/weltschmerz.mo"; \
done
for man in $(MANI18N); do \
lang=$$(echo $$man | cut -f2 -d.); \
- install -D -m 644 "$$man" "${DESTDIR}${MANDIR}/$$lang/man1/weltschmerz.1"; \
+ install -d "${DESTDIR}${MANDIR}/$$lang/man1"; \
+ install -m 644 "$$man" "${DESTDIR}${MANDIR}/$$lang/man1/weltschmerz.1"; \
done
clean: