makedist-announcement: install in prober directory
Makefile: install locale file(s) and makedist-announcement
This commit is contained in:
parent
fd95bcde93
commit
91c16825d5
29
Makefile
29
Makefile
@ -16,6 +16,32 @@ prefix := /usr
|
||||
datadir := $(prefix)/share
|
||||
sysconfdir := /etc
|
||||
sbindir := $(prefix)/sbin
|
||||
localedir := $(datadir)/locale/
|
||||
|
||||
INSTALL = /usr/bin/install
|
||||
INSTALL_PROGRAM = ${INSTALL} -m 755
|
||||
INSTALL_DATA = ${INSTALL} -m 644
|
||||
INSTALL_DIR = ${INSTALL} -d -m 755
|
||||
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
|
||||
|
||||
pck_catalogs := $(wildcard po/*.po)
|
||||
|
||||
.po.mo:; msgfmt $< -o $@
|
||||
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .in .po .mo
|
||||
|
||||
locales: $(pck_catalogs:.po=.mo)
|
||||
|
||||
install-locales: locales
|
||||
@install -d $(DESTDIR)$(localedir)
|
||||
@for f in $(pck_catalogs); do\
|
||||
lang=`echo $$f | sed 's,.*/\(.*\)\.po,\1,'`;\
|
||||
echo "installing i18n file for language \`$$lang'...";\
|
||||
dir="$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES";\
|
||||
$(INSTALL_DIR) $$dir;\
|
||||
$(INSTALL_DATA) $${f/.po/.mo} $$dir/makedist.mo;\
|
||||
done
|
||||
|
||||
dist: clean
|
||||
@git log > ChangeLog.git
|
||||
@ -34,7 +60,7 @@ dist-rpm: dist
|
||||
clean:
|
||||
@rm -fr $(dist_archive)
|
||||
|
||||
install:
|
||||
install: install-locales
|
||||
@install -d $(DESTDIR)$(datadir);\
|
||||
cp -a makedist $(DESTDIR)$(datadir)/;\
|
||||
install -d $(DESTDIR)$(sysconfdir)/makedist;\
|
||||
@ -46,3 +72,4 @@ install:
|
||||
install -d $(DESTDIR)$(sbindir);\
|
||||
cp -a bin/makedist-recordvm $(DESTDIR)$(sbindir)/makedist-recordvm
|
||||
cp -a bin/makedist-newrelease $(DESTDIR)$(sbindir)/makedist-newrelease
|
||||
cp -a bin/makedist-announcement $(DESTDIR)$(sbindir)/makedist-announcement
|
||||
|
Loading…
Reference in New Issue
Block a user