realloc-*: Move AC_LIBOBJ invocations to module description.
[pspp] / modules / unictype / category-byname
index 3d19aa8acc3061800b2b7ebddfd5cbd51675fecd..b9538fc7eab4fed595c81126d4bd7302e1ec733a 100644 (file)
@@ -3,6 +3,7 @@ Find a Unicode character category, given its name.
 
 Files:
 lib/unictype/categ_byname.c
+lib/unictype/categ_byname.gperf
 
 Depends-on:
 unictype/base
@@ -45,6 +46,7 @@ unictype/category-Zl
 unictype/category-Zp
 unictype/category-Zs
 unictype/category-none
+gperf
 
 configure.ac:
 gl_LIBUNISTRING_MODULE([0.9.4], [unictype/category-byname])
@@ -54,6 +56,14 @@ if LIBUNISTRING_COMPILE_UNICTYPE_CATEGORY_BYNAME
 lib_SOURCES += unictype/categ_byname.c
 endif
 
+unictype/categ_byname.h: unictype/categ_byname.gperf
+       $(GPERF) -m 10 $(srcdir)/unictype/categ_byname.gperf > $(srcdir)/unictype/categ_byname.h-t
+       mv $(srcdir)/unictype/categ_byname.h-t $(srcdir)/unictype/categ_byname.h
+BUILT_SOURCES        += unictype/categ_byname.h
+MOSTLYCLEANFILES     += unictype/categ_byname.h-t
+MAINTAINERCLEANFILES += unictype/categ_byname.h
+EXTRA_DIST           += unictype/categ_byname.h
+
 Include:
 "unictype.h"