blob: 67284233bb1e5fb138bd9141c3fc14be684403ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,8 @@
DESTDIR =
BINDIR = $(DESTDIR)/usr/bin
-LOCALEDIR = $(DESTDIR)/usr/share/locale
+BLOCALEDIR = /usr/share/locale
+LOCALEDIR = $(DESTDIR)$(BLOCALEDIR)
MANDIR = $(DESTDIR)/usr/share/man/man1
TARGET=all
@@ -89,7 +90,7 @@
[ -d $$modir ] || mkdir -p $$modir; \
install -m644 $(PODIR)/$$pot $$modir/$(NAME).mo; \
done; \
- sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(LOCALEDIR),' \
+ sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(BLOCALEDIR),' \
-e '/^VERSION=/s/=.*/=$(VERSION)/' $(SHSKEL) > $(BINDIR)/$(NAME) && \
chmod +x $(BINDIR)/$(NAME) && \
echo "program '$(NAME)' installed. just run $(BINDIR)/$(NAME)"
|