Lines 1-27
Link Here
|
1 |
--- Makefile.orig 2021-05-03 12:57:27 UTC |
1 |
--- Makefile.orig 2022-04-23 13:09:38 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -388,18 +388,20 @@ PLUGINS_INSTALL := \ |
3 |
@@ -503,17 +503,21 @@ PLUGINS := \ |
4 |
|
4 |
|
5 |
.PHONY: install |
5 |
.PHONY: install |
6 |
install: $(EXE) |
6 |
install: $(EXE) help/rehex.htb |
7 |
- install -D -m 0755 $(EXE) $(DESTDIR)$(bindir)/$(EXE) |
7 |
- install -D -m 0755 $(EXE) $(DESTDIR)$(bindir)/$(EXE) |
8 |
+ $(BSD_INSTALL_PROGRAM) $(EXE) $(DESTDIR)$(bindir)/$(EXE) |
8 |
+ install -m 0755 $(STRIP) $(EXE) $(DESTDIR)$(bindir)/$(EXE) |
9 |
|
9 |
|
10 |
for s in 16 32 48 64 128 256 512; \ |
10 |
for s in 16 32 48 64 128 256 512; \ |
11 |
do \ |
11 |
do \ |
12 |
- install -D -m 0644 res/icon$${s}.png $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps/rehex.png; \ |
12 |
- install -D -m 0644 res/icon$${s}.png $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps/rehex.png; \ |
13 |
+ mkdir -p $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps; \ |
13 |
+ mkdir -p $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps; \ |
14 |
+ $(BSD_INSTALL_DATA) res/icon$${s}.png $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps/rehex.png; \ |
14 |
+ install -m 0644 res/icon$${s}.png $(DESTDIR)$(datarootdir)/icons/hicolor/$${s}x$${s}/apps/rehex.png; \ |
15 |
done |
15 |
done |
16 |
|
16 |
- |
17 |
- install -D -m 0644 res/rehex.desktop $(DESTDIR)$(datarootdir)/applications/rehex.desktop |
17 |
- install -D -m 0644 res/rehex.desktop $(DESTDIR)$(datarootdir)/applications/rehex.desktop |
18 |
+ $(BSD_INSTALL_DATA) res/rehex.desktop $(DESTDIR)$(datarootdir)/applications/rehex.desktop |
18 |
- |
19 |
|
19 |
- install -D -m 0644 help/rehex.htb $(DESTDIR)$(datadir)/rehex/rehex.htb |
|
|
20 |
- |
21 |
+ |
22 |
+ mkdir -p $(DESTDIR)$(datarootdir)/applications |
23 |
+ install -m 0644 res/rehex.desktop $(DESTDIR)$(datarootdir)/applications/rehex.desktop |
24 |
+ |
25 |
+ mkdir -p $(DESTDIR)$(datadir)/rehex |
26 |
+ install -m 0644 help/rehex.htb $(DESTDIR)$(datadir)/rehex/rehex.htb |
27 |
+ |
20 |
+ mkdir -p $(DESTDIR)$(libdir)/rehex/exe |
28 |
+ mkdir -p $(DESTDIR)$(libdir)/rehex/exe |
21 |
for f in $(PLUGINS_INSTALL); \ |
29 |
for p in $(PLUGINS); \ |
22 |
do \ |
30 |
do \ |
23 |
- install -D -m 0644 plugins/$${f} $(DESTDIR)$(libdir)/rehex/$${f}; \ |
31 |
$(MAKE) -C plugins/$${p} install || exit $$?; \ |
24 |
+ $(BSD_INSTALL_DATA) plugins/$${f} $(DESTDIR)$(libdir)/rehex/$${f}; \ |
|
|
25 |
done |
26 |
|
27 |
.PHONY: uninstall |