From 7b62eded62144d33f3bac73ece2f6265e2a42cce Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 27 Dec 2018 16:28:29 -0500 Subject: Move code from Makefile.am to locale/local.mk --- (limited to 'locale') diff --git a/locale/local.mk b/locale/local.mk index 39e7ac4..adc36da 100644 --- a/locale/local.mk +++ b/locale/local.mk @@ -1,3 +1,36 @@ locale_sources = \ locale/en_US/libopkbuild_2.sh \ locale/en_US/opkbuild.sh +locale_MESSAGES = $(locale_sources:.sh=.ms) + +SUFFIXES += .ms +CLEANFILES += \ + $(locale_MESSAGES) +EXTRA_DIST += \ + $(locale_sources) + +.sh.ms: + $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)" + $(AM_V_at)cp $< $@ + +all-local: $(locale_MESSAGES) + +install-data-local: $(locale_MESSAGES) + @$(NORMAL_INSTALL) + set -e; for f in $(locale_MESSAGES); do \ + ff="$${f#*/}"; \ + dd="$(DESTDIR)/$(localedir)/$${ff%/?*}/LC_MESSAGES"; \ + $(MKDIR_P) "$${dd}"; \ + df="$${dd}/$${ff##*/}"; \ + cp "$${f}" "$${df}"; \ + chmod 644 "$${df}"; \ + done + +uninstall-local: + @$(NORMAL_UNINSTALL) + set -e; for f in $(locale_MESSAGES); do \ + ff="$${f#*/}"; \ + dd="$(DESTDIR)/$(localedir)/$${ff%/?*}/LC_MESSAGES"; \ + df="$${dd}/$${ff##*/}"; \ + rm -f "$${df}"; \ + done -- cgit v0.9.1