diff options
-rw-r--r-- | locale/Makefile.in | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/locale/Makefile.in b/locale/Makefile.in index 10338d9..59237ab 100644 --- a/locale/Makefile.in +++ b/locale/Makefile.in @@ -26,10 +26,10 @@ datadir = @datadir@ localedir = @localedir@ .SUFFIXES: -.SUFFIXES: .sh +.SUFFIXES: .sh .ms -SRCS = en_US.sh -OBJS = $(SRCS:.sh=) +SRCS = en_US/opkhelper.sh +OBJS = $(SRCS:.sh=.ms) distdir = ../$(package_name)-$(package_version)/locale distfiles = Makefile.in $(SRCS) @@ -38,7 +38,8 @@ all: $(OBJS) $(OBJS): @printf ' CP locale/%s\n' '$@' - @cp '$(srcdir)/locale/$@.sh' '$@' + @obj='$@'; mkdir -p "$${obj%/*}" + @cp '$(srcdir)/locale/$*.sh' '$@' clean: @for obj in $(OBJS); do \ @@ -49,17 +50,23 @@ clean: install: all @for obj in $(OBJS); do \ printf ' INSTALL locale/%s\n' "$${obj}"; \ - mkdir -p '$(DESTDIR)/$(localedir)'; \ - cp "$${obj}" "$(DESTDIR)/$(localedir)/$${obj}"; \ - chmod 644 "$(DESTDIR)/$(localedir)/$${obj}"; \ + mkdir -p "$(DESTDIR)/$(localedir)/$${obj%/*}/LC_MESSAGES"; \ + dest="$(DESTDIR)/$(localedir)/$${obj%/*}/LC_MESSAGES/$${obj##*/}"; \ + cp "$${obj}" "$${dest}"; \ + chmod 644 "$${dest}"; \ done uninstall: @for obj in $(OBJS); do \ printf ' RM %s\n' "$${obj}"; \ - rm -f "$(DESTDIR)/$(localedir)/$${obj}"; \ + dest="$(DESTDIR)/$(localedir)/$${obj%/*}/LC_MESSAGES/$${obj##*/}"; \ + rm -f "$${dest}"; \ done $(distdir): @mkdir -p '$(distdir)' - @cp -pR $(distfiles) '$(distdir)' + @for file in $(distfiles); do \ + file="./$${file}"; \ + mkdir -p "$(distdir)/$${file%/*}"; \ + cp -p "$${file}" "$(distdir)/$${file%/*}"; \ + done |