NAME := @GETTEXT_PACKAGE@ LANGS := @ALL_LINGUAS@ LANGDIR := $(foreach LANG, $(LANGS),$(LANG).mo) POTFILES := \ ../data/pysdm.glade.h \ ../pysdm/fsdata/constants.py \ ../pysdm/fsdata/default.py \ ../pysdm/fsdata/ext2.py \ ../pysdm/fsdata/ext3.py \ ../pysdm/fsdata/fat.py \ ../pysdm/fsdata/__init__.py \ ../pysdm/fsdata/ntfs.py \ ../pysdm/fsdata/reiserfs.py \ ../pysdm/fsdata/swap.py \ ../pysdm/fsdata/xfs.py \ ../pysdm/pysdm.py \ ../pysdm/sysfs.py \ ../pysdm/options_ui.py PREFIX := @prefix@ all: $(LANGDIR) %.mo: %.po msgfmt $< -o $@ install -d $*/LC_MESSAGES/ install -m 444 $@ $*/LC_MESSAGES/$(NAME).mo rm $@ $(NAME).pot: $(POTFILES) intltool-update --pot --gettext-package=$(NAME) intltool-update $(LANGS) install: install -d $(DESTDIR)$(PREFIX)/share/locale/ cp -r ./$(LANGS) $(DESTDIR)$(PREFIX)/share/locale/ uninstall: find $(DESTDIR)$(PREFIX)/share/locale/ -name $(NAME).mo -exec rm -f {} \; clean: find . -name '*.mo' -exec rm -f {} \; rm -fr POTFILES rm -fr $(LANGS) distclean: rm -f Makefile rm -f POTFILES rm -fr $(LANGS)