2014-06-17 03:22:06 +02:00
|
|
|
include $(dir $(lastword $(MAKEFILE_LIST)))../header.mk
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
.SUFFIXES: .po .mo
|
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
PO := $(wildcard $(d)*.po)
|
|
|
|
MO := $(PO:po=mo)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
ifeq (yes, $(BUILD_DARWIN))
|
|
|
|
MO_INSTALLED = $(DESTDIR)$(P_LOCALE)/%.lproj/$(AEGISUB_CATALOG).mo
|
|
|
|
else
|
|
|
|
MO_INSTALLED = $(DESTDIR)$(P_LOCALE)/%/LC_MESSAGES/$(AEGISUB_CATALOG).mo
|
|
|
|
endif
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
%.mo: %.po
|
|
|
|
$(BIN_MSGFMT) -o $@ $<
|
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
$(MO_INSTALLED): $(d)%.mo ; $(MKDIR_INSTALL)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
all: $(MO)
|
|
|
|
install: $(patsubst %.mo, $(MO_INSTALLED), $(notdir $(MO)))
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
CLEANFILES += $(MO)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
include $(TOP)Makefile.target
|