summarylogtreecommitdiffstats
path: root/0001_symlink-ecm2bin-manpage.patch
blob: 27b01a48cc0bcc43430ffd39c08e65ac2296752e (plain)
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
28
diff --git a/Makefile b/Makefile
index ed5bf91..1a7f724 100644
--- a/Makefile
+++ b/Makefile
@@ -21,17 +21,14 @@ mandir?=/share/man
 target=$(DESTDIR)$(prefix)
 
 install-%: % %.1
-	install -d "$(target)$(bindir)"
-	install -d "$(target)$(mandir)/man1"
-	install $< "$(target)$(bindir)"
-	install -m644 $<.1 "$(target)$(mandir)/man1"
+	install -D $< -t "$(target)$(bindir)"
+	install -Dm644 $<.1 -t "$(target)$(mandir)/man1"
 
 install-bin2ecm: bin2ecm bin2ecm.1
-	install -d "$(target)$(bindir)"
-	install -d "$(target)$(mandir)/man1"
-	install bin2ecm "$(target)$(bindir)"
-	install -m644 bin2ecm.1 "$(target)$(mandir)/man1"
-	ln -s bin2ecm "$(target)$(bindir)/ecm2bin"
+	install -D bin2ecm -t "$(target)$(bindir)"
+	install -Dm644 bin2ecm.1 -t "$(target)$(mandir)/man1"
+	ln -fs bin2ecm "$(target)$(bindir)/ecm2bin"
+	ln -fs bin2ecm.1 "$(target)$(mandir)/man1/ecm2bin.1"
 
 install: install-bin2ecm install-bincomp install-brrrip			\
          install-byteshuf install-cdpatch install-fakecrc		\