about summary refs log tree commit diff
path: root/catgets/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-07 03:49:56 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-07 03:49:56 +0000
commit04ba87901c8be7f38906147854e0fc1e4351f486 (patch)
tree3e4056e689d96b22364ea18fdf8a3f08dfa9358b /catgets/Makefile
parent82cd2e44f10f0f46bd515cc08e788bd6ad733de7 (diff)
downloadglibc-04ba87901c8be7f38906147854e0fc1e4351f486.tar.gz
glibc-04ba87901c8be7f38906147854e0fc1e4351f486.tar.xz
glibc-04ba87901c8be7f38906147854e0fc1e4351f486.zip
Update.
	* catgets/Depend: New file.  Add intl.
	* catgets/Makefile (tests): Add tst-catgets.
	(generated): Remove de.msg.
	(generated-dirs): Add de.
	Add dependency if tst-catgets output on de/libc.cat.
	* catgets/tst-catgets.c: New file.
Diffstat (limited to 'catgets/Makefile')
-rw-r--r--catgets/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/catgets/Makefile b/catgets/Makefile
index b4fbbf9b16..5c72ecdbaa 100644
--- a/catgets/Makefile
+++ b/catgets/Makefile
@@ -28,6 +28,8 @@ others		= gencat
 install-bin	= gencat
 extra-objs	= $(gencat-modules:=.o)
 
+tests = tst-catgets
+
 gencat-modules	= xmalloc
 
 # To find xmalloc.c
@@ -41,16 +43,21 @@ $(objpfx)gencat: $(gencat-modules:%=$(objpfx)%.o)
 catgets-CPPFLAGS := -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"' \
 	    -DHAVE_CONFIG_H
 
-generated = de.msg de.cat test1.cat test1.h
+generated = de.msg test1.cat test1.h
+generated-dirs = de
+
+tst-catgets-ENV = NLSPATH="$(objpfx)%l/%N.cat" LANG=de
 
 ifneq ($(cross-compiling),yes)
-tests: $(objpfx)de.cat $(objpfx)test1.cat
+tests: $(objpfx)de/libc.cat $(objpfx)test1.cat
 # This test just checks whether the program produces any error or not.
 # The result is not tested.
 $(objpfx)test1.cat: test1.msg $(objpfx)gencat
 	$(built-program-cmd) -H $(objpfx)test1.h $@ $<
-$(objpfx)de.cat: $(objpfx)de.msg $(objpfx)gencat
+$(objpfx)de/libc.cat: $(objpfx)de.msg $(objpfx)gencat
+	-mkdir $(objpfx)de
 	$(built-program-cmd) $@ $<
+$(objpfx)tst-catgets.out: $(objpfx)de/libc.cat
 
 # Generate a non-simple input file.
 $(objpfx)de.msg: $(..)po/de.po