mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 23:22:30 +01:00
- nobody used it Amend network stuff removal still more wings network removals [crmafra: squashed together three patches]
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
nlsdir = $(NLSDIR)
|
|
|
|
CATALOGS = @WINGSMOFILES@
|
|
|
|
CLEANFILES = $(CATALOGS) WINGs.pot
|
|
|
|
EXTRA_DIST = bg.po ca.po cs.po de.po fr.po sk.po
|
|
|
|
POTFILES = \
|
|
$(top_builddir)/WINGs/error.c \
|
|
$(top_builddir)/WINGs/findfile.c \
|
|
$(top_builddir)/WINGs/proplist.c \
|
|
$(top_builddir)/WINGs/userdefaults.c \
|
|
$(top_builddir)/WINGs/wcolor.c \
|
|
$(top_builddir)/WINGs/wcolorpanel.c \
|
|
$(top_builddir)/WINGs/wfilepanel.c \
|
|
$(top_builddir)/WINGs/wfont.c \
|
|
$(top_builddir)/WINGs/wfontpanel.c \
|
|
$(top_builddir)/WINGs/widgets.c \
|
|
$(top_builddir)/WINGs/wruler.c
|
|
|
|
SUFFIXES = .po .mo
|
|
|
|
.po.mo:
|
|
msgfmt -c -o $@ $<
|
|
|
|
|
|
all-local: $(CATALOGS)
|
|
|
|
WINGs.pot: $(POTFILES)
|
|
xgettext --default-domain=WINGs \
|
|
--add-comments --keyword=_ --keyword=N_ $(POTFILES)
|
|
if cmp -s WINGs.po WINGs.pot; then \
|
|
rm -f WINGs.po; \
|
|
else \
|
|
mv -f WINGs.po WINGs.pot; \
|
|
fi
|
|
|
|
install-data-local: $(CATALOGS)
|
|
$(mkinstalldirs) $(DESTDIR)$(nlsdir)
|
|
chmod 755 $(DESTDIR)$(nlsdir)
|
|
for n in $(CATALOGS) __DuMmY ; do \
|
|
if test "$$n" -a "$$n" != "__DuMmY" ; then \
|
|
l=`basename $$n .mo`; \
|
|
$(mkinstalldirs) $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
|
|
chmod 755 $(DESTDIR)$(nlsdir)/$$l; \
|
|
chmod 755 $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
|
|
$(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES/WINGs.mo; \
|
|
fi; \
|
|
done
|