diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-09 17:16:34 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-09 17:16:34 (EDT) |
commit | 6a3fccce99c44f59563b92269560c05c1c57c739 (patch) | |
tree | 908270cf20bb957ffd2d89f9327e38006488dc78 /locale | |
parent | c23af008662329a8ff7c5387cd33160542faa512 (diff) |
Update locale/Makefile.in.
Diffstat (limited to 'locale')
-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 |