fix: Fix path for the locales, return error when running as root
This commit is contained in:
6
Makefile
6
Makefile
@ -20,16 +20,16 @@ dist/xcfg: $(SRCS) $(HEADERS) $(PO_FILES)
|
||||
fi; \
|
||||
done
|
||||
@for po in $(PO_DIRS) ; do \
|
||||
msgfmt $$po/xcfg.po -o $$po/mp.mo ; \
|
||||
msgfmt $$po/xcfg.po -o $$po/xcfg.mo ; \
|
||||
done
|
||||
|
||||
install:
|
||||
mkdir -p $(DESTDIR)$(prefix)/bin
|
||||
install -m755 dist/xcfg $(DESTDIR)$(prefix)/bin/xcfg
|
||||
@for po in $(PO_DIRS) ; do \
|
||||
echo "installing locale: $$po/mp.mo" ; \
|
||||
echo "installing locale: $$po/xcfg.mo" ; \
|
||||
mkdir -pv $(DESTDIR)/usr/share/$$po ; \
|
||||
cp $$po/mp.mo $(DESTDIR)/usr/share/$$po ; \
|
||||
cp $$po/xcfg.mo $(DESTDIR)/usr/share/$$po ; \
|
||||
done
|
||||
|
||||
uninstall:
|
||||
|
Reference in New Issue
Block a user