From 6a3fccce99c44f59563b92269560c05c1c57c739 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 09 Oct 2012 17:16:34 -0400 Subject: Update locale/Makefile.in. --- (limited to 'locale') 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 -- cgit v0.9.1