summarylogtreecommitdiffstats
path: root/Makefile.patch
blob: 9756a42b1db2f4445d70c2e306cca574bde05860 (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
29
30
31
32
33
34
35
36
--- Makefile.orig	2017-05-03 14:52:31.078341985 +1100
+++ Makefile	2017-05-03 15:20:25.013306258 +1100
@@ -1,14 +1,17 @@
-INSTALL = /usr/bin/install -m 644
-DEST = /usr/share/m17n
-ICONDEST = /usr/share/m17n/icons
-LOCALEDEST = /usr/share/i18n/locales
+INSTALL = /usr/bin/install
+DEST = $(DESTDIR)usr/share/m17n
+ICONDEST = $(DESTDIR)usr/share/m17n/icons
+LOCALEDEST = $(DESTDIR)usr/share/i18n/locales
 
 install:
-	$(INSTALL) *.mim $(DEST)
-	$(INSTALL) *.lnm $(DEST)
-	$(INSTALL) icons/*.png $(ICONDEST)
-	$(INSTALL) cu_RU $(LOCALEDEST)
-	localedef -f UTF-8 -i cu_RU cu_RU
+	$(INSTALL) -dm755 $(DEST)
+	$(INSTALL) -dm755 $(ICONDEST)
+	$(INSTALL) -dm755 $(LOCALEDEST)
+	$(INSTALL) -Dm644 *.mim $(DEST)
+	$(INSTALL) -Dm644 *.lnm $(DEST)
+	$(INSTALL) -Dm644 icons/*.png $(ICONDEST)
+	$(INSTALL) -Dm644 cu_RU $(LOCALEDEST)
+	#localedef -f UTF-8 -i cu_RU cu_RU
 
 
 uninstall:
@@ -18,5 +21,5 @@
 	rm -f $(DEST)/ru-ext.mim
 	rm -f $(DEST)/cu.lnm
 	rm -f $(LOCALEDEST)/cu_RU
-	localedef --delete-from-archive cu_RU.utf8
+	#localedef --delete-from-archive cu_RU.utf8