1998-10-30 Ulrich Drepper <drepper@cygnus.com>
+ * catgets/Makefile (tests): Add rules to run gencat on test1.msg.
+ (generate): Add test1.cat and test1.h.
+ (distribute): Add test1.msg.
+
* catgets/gencat.c: Do a better job in initializing dynamic
memory [PR libc/844].
subdir := catgets
headers = nl_types.h
-distribute = catgetsinfo.h config.h xopen-msg.sed
+distribute = catgetsinfo.h config.h xopen-msg.sed test1.msg
routines = catgets open_catalog
others = gencat
install-bin = gencat
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
+generated = de.msg de.cat test1.cat test1.h
ifneq ($(cross-compiling),yes)
-tests: $(objpfx)de.cat
+tests: $(objpfx)de.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
$(built-program-cmd) $@ $<