summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-15 14:38:57 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-15 14:38:57 (EDT)
commitb54ef10053fd09f9047ea2439499b5dff986dffe (patch)
tree959b5882242b7dcd06e7204bad3935c995062e15
parentc1d52f92ee9b4dc1e89d9e563af7bcf1ae47d78a (diff)
Make locale/ non-recursive.
-rw-r--r--Makefile.in17
-rw-r--r--locale/local.mk22
2 files changed, 34 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index aac152d..67daea9 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -55,11 +55,13 @@ include $(srcdir)/src/local.mk
include $(srcdir)/lib/local.mk
include $(srcdir)/lib/package/local.mk
include $(srcdir)/lib/metadata/local.mk
+include $(srcdir)/locale/local.mk
bin = $(bin_srcs:.sh=)
pkglib = $(pkglib_srcs:.sh=.sm)
pkglibpackage = $(pkglibpackage_srcs:.sh=.sm)
pkglibmetadata = $(pkglibmetadata_srcs:.sh=.sm)
+locale = $(locale_srcs:.sh=.ms)
distdir = $(package_name)-$(package_version)
distfiles = \
@@ -75,10 +77,12 @@ distfiles = \
lib/local.mk \
lib/package/local.mk \
lib/metadata/local.mk \
+ locale/local.mk \
$(bin_srcs) \
$(pkglib_srcs) \
$(pkglibpackage_srcs) \
- $(pkglibmetadata_srcs)
+ $(pkglibmetadata_srcs) \
+ $(locale_srcs)
script = \
s&@@PACKAGE_NAME@@&$(package_name)&;\
@@ -94,7 +98,7 @@ script = \
s&@@OPKHELPER_3_0@@&$(opkhelper_3_0)&;
.SUFFIXES:
-.SUFFIXES: .sh .sm
+.SUFFIXES: .sh .sm .ms
.sh:
@printf ' SED %s\n' '$@'
@@ -104,6 +108,11 @@ script = \
@printf ' SED %s\n' '$@'
@sed '$(script)' '$(srcdir)/$?' >'$@'
@chmod 644 '$@'
+.sh.ms:
+ @printf ' CP %s\n' '$@'
+ @obj='$@'; mkdir -p "$${obj%/*}"
+ @cp '$(srcdir)/$?' '$@'
+ @chmod 644 '$@'
all: all-exec all-data
all-exec: all-bin all-pkglib all-pkglibpackage all-pkglibmetadata
@@ -115,9 +124,7 @@ all-data: all-man all-locale
all-man:
@printf 'Making manual pages...\n'
@cd man && $(MAKE) $(MACROS) all
-all-locale:
- @printf 'Making locales...\n'
- @cd locale && $(MAKE) $(MACROS) all
+all-locale: $(locale)
clean:
@printf 'Cleaning executable files...\n'
diff --git a/locale/local.mk b/locale/local.mk
new file mode 100644
index 0000000..7f75252
--- /dev/null
+++ b/locale/local.mk
@@ -0,0 +1,22 @@
+# opkbuild
+# locale/local.mk
+#
+# Copyright (C) 2012-2013 Patrick "P. J." McDermott
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+locale_srcs = \
+ locale/en_MID/libopkbuild_1.sh \
+ locale/en_US/libopkbuild_1.sh \
+ locale/en_US/opkbuild.sh