47 lines
983 B
Makefile
47 lines
983 B
Makefile
srcdir = @srcdir@
|
|
VPATH = $(srcdir)
|
|
|
|
include $(srcdir)/../Makefile.inc
|
|
|
|
INSTALL= @INSTALL@
|
|
INSTALL_PROGRAM= @INSTALL_PROGRAM@
|
|
INSTALL_DATA= @INSTALL_DATA@
|
|
|
|
CATALOGS = se.mo fr.mo
|
|
|
|
POTFILES = $(srcdir)/../rpm.c
|
|
|
|
all: $(NLSPACKAGE).pot $(CATALOGS)
|
|
|
|
$(NLSPACKAGE).pot: $(POTFILES)
|
|
xgettext --default-domain=$(NLSPACKAGE) \
|
|
--add-comments --keyword=_ --keyword=N_ $(POTFILES)
|
|
if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \
|
|
rm -f $(NLSPACKAGE).po; \
|
|
else \
|
|
mv $(NLSPACKAGE).po $(NLSPACKAGE).pot; \
|
|
fi
|
|
|
|
clean:
|
|
rm -f *mo $(NLSPACKAGE).pot
|
|
|
|
distclean: clean
|
|
rm -f .depend Makefile
|
|
|
|
depend:
|
|
|
|
install:
|
|
$(INSTALL) -m 755 -o 0 -g 0 -d $(NLSDIR)
|
|
for n in $(CATALOGS); do \
|
|
l=`basename $$n .mo`; \
|
|
$(INSTALL) -m 755 -o 0 -g 0 -d $(NLSDIR)/$$l; \
|
|
$(INSTALL) -m 755 -o 0 -g 0 -d $(NLSDIR)/$$l/LC_MESSAGES; \
|
|
$(INSTALL) -m 644 -o 0 -g 0 $$n $(NLSDIR)/$$l/LC_MESSAGES/rpm.mo; \
|
|
done
|
|
|
|
fr.mo: fr.po
|
|
msgfmt -o $@ $<
|
|
|
|
se.mo: se.po
|
|
msgfmt -o $@ $<
|