summaryrefslogtreecommitdiff
path: root/catgets/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-22 11:02:04 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-22 11:02:04 +0000
commit3e300ca1aef3549968668a0fd380465e3d185282 (patch)
tree7b666d9304b907e39465ba631da20fe5810dd8fa /catgets/Makefile
parentd553bbf23643fd07d76a19f000b78efc13e1ff7e (diff)
downloadglibc-3e300ca1aef3549968668a0fd380465e3d185282.tar.gz
Update.
1998-05-22 10:56 Ulrich Drepper <drepper@cygnus.com> * catgets/Makefile (distribute): Add xopen-msg.h. (generated): Add de.msg and de.cat. (tests): Add do-gencat-test. (do-gencat-test): New goal. Run gencat on a generated msg file. * catgets/xopen-msg.h: New file.
Diffstat (limited to 'catgets/Makefile')
-rw-r--r--catgets/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/catgets/Makefile b/catgets/Makefile
index ee464c1adc..7ce634ff5b 100644
--- a/catgets/Makefile
+++ b/catgets/Makefile
@@ -22,7 +22,7 @@
subdir := catgets
headers = nl_types.h
-distribute = catgetsinfo.h config.h
+distribute = catgetsinfo.h config.h xopen-msg.sed
routines = catgets open_catalog
others = gencat
install-bin = gencat
@@ -40,3 +40,16 @@ $(objpfx)gencat: $(gencat-modules:%=$(objpfx)%.o)
CPPFLAGS := -DNLSPATH='"$(localedir)/%L/%N:$(localedir)/%L/LC_MESSAGES/%N:$(localedir)/%l/%N:$(localedir)/%l/LC_MESSAGES/%N:"' \
-DHAVE_CONFIG_H $(CPPFLAGS)
+
+generated = de.msg de.cat
+
+.PHONY: do-gencat-test
+tests: do-gencat-test
+# This test just checks whether the program produces any error or not.
+# The result is not tested.
+do-gencat-test: $(objpfx)de.msg $(objpfx)gencat
+ $(built-program-cmd) $(objpfx)de.cat $(objpfx)de.msg
+
+# Generate a non-simple input file.
+$(objpfx)de.msg: $(..)/po/de.po
+ sed -f xopen-msg.sed $< > $@