summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am35
-rw-r--r--locale/local.mk33
2 files changed, 35 insertions, 33 deletions
diff --git a/Makefile.am b/Makefile.am
index 5543ef7..bfd8a12 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -33,7 +33,7 @@ endif
# * Our release target
PACKAGE_STRING = $(PACKAGE_NAME) $(PACKAGE_VERSION_GIT)
-SUFFIXES = .sh .sho .ms
+SUFFIXES = .sh .sho
SHOBJEXT = sho
SHPPFLAGS = \
@@ -52,22 +52,17 @@ LINK = printf "PACKAGE_VERSION='%s'\n" "$(PACKAGE_VERSION_GIT)" | \
'$(srcdir)/tools/shld.sh' -I '$(SH)' -o $@ config.sh -
LIBLINK = '$(srcdir)/tools/shld.sh' -o $@
-locale_MESSAGES = $(locale_sources:.sh=.ms)
-
dist_pkgdata_DATA = optstring
-CLEANFILES = \
- $(locale_MESSAGES)
-
libdatadir = $(datadir)/sh
helperdir = $(pkgdatadir)/helpers
+CLEANFILES =
EXTRA_DIST = \
NEWS.opkhelper \
TODO \
autogen.sh \
mksysconf.in \
- $(locale_sources) \
$(TESTS) \
tools/shpp.sh \
tools/shld.sh \
@@ -126,28 +121,6 @@ todo:
printf '\n'; \
fi
-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
-
really-clean: distclean
rm -Rf $(srcdir)/aclocal.m4 $(srcdir)/autom4te.cache/ \
$(srcdir)/configure \
@@ -191,10 +164,6 @@ release:
$(AM_V_at)$(SH) -n $<
$(AM_V_at)'$(srcdir)/tools/shpp.sh' $(SHPPFLAGS) $< $@
-.sh.ms:
- $(AM_V_GEN)$(MKDIR_P) "$$(dirname $@)"
- $(AM_V_at)cp $< $@
-
include $(top_srcdir)/src/local.mk
include $(top_srcdir)/lib/local.mk
include $(top_srcdir)/man/local.mk
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