openat: Respect rules for use of AC_LIBOBJ.
[gnulib.git] / modules / unicase / base
index ddd2fe6..f5e22cb 100644 (file)
@@ -2,7 +2,8 @@ Description:
 Base layer for Unicode character case mappings.
 
 Files:
-lib/unicase.h
+lib/unicase.in.h
+m4/libunistring-base.m4
 
 Depends-on:
 unitypes
@@ -10,8 +11,18 @@ uninorm/base
 stdbool
 
 configure.ac:
+gl_LIBUNISTRING_LIBHEADER([0.9.1], [unicase.h])
 
 Makefile.am:
+BUILT_SOURCES += $(LIBUNISTRING_UNICASE_H)
+
+unicase.h: unicase.in.h
+       $(AM_V_GEN)rm -f $@-t $@ && \
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/unicase.in.h; \
+       } > $@-t && \
+       mv -f $@-t $@
+MOSTLYCLEANFILES += unicase.h unicase.h-t
 
 Include:
 "unicase.h"