blob: 91c4fea5fd06998e81d2e2bb6f9c1e09c22b17b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--- Makefile.orig 2021-05-03 12:57:27 UTC
+++ Makefile
@@ -388,18 +388,20 @@ PLUGINS_INSTALL := \
.PHONY: install
install: $(EXE)
- install -D -m 0755 $(EXE) $(DESTDIR)$(bindir)/$(EXE)
+ $(BSD_INSTALL_PROGRAM) $(EXE) $(DESTDIR)$(bindir)/$(EXE)
for s in 16 32 48 64 128 256 512; \
do \
- install -D -m 0644 res/icon$${s}.png $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps/rehex.png; \
+ mkdir -p $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps; \
+ $(BSD_INSTALL_DATA) res/icon$${s}.png $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps/rehex.png; \
done
- install -D -m 0644 res/rehex.desktop $(DESTDIR)$(datarootdir)/applications/rehex.desktop
+ $(BSD_INSTALL_DATA) res/rehex.desktop $(DESTDIR)$(datarootdir)/applications/rehex.desktop
+ mkdir -p $(DESTDIR)$(libdir)/rehex/exe
for f in $(PLUGINS_INSTALL); \
do \
- install -D -m 0644 plugins/$${f} $(DESTDIR)$(libdir)/rehex/$${f}; \
+ $(BSD_INSTALL_DATA) plugins/$${f} $(DESTDIR)$(libdir)/rehex/$${f}; \
done
.PHONY: uninstall
|