changeset 1593:1989ac95890d

(libfu_a_SOURCES): Remove strcasecmp.c. (BUILT_SOURCES): Add strcasecmp.c and strncasecmp.c. (EXTRA_DIST): Add strcasecmp.cin. (strcasecmp.c): New rule. (strncasecmp.c): New rule.
author Jim Meyering <jim@meyering.net>
date Thu, 31 Dec 1998 22:03:13 +0000
parents 6ba864382953
children 9077dfe02dbe
files lib/Makefile.am
diffstat 1 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -24,9 +24,9 @@
 posixtm.h quotearg.h regex.h safe-read.h save-cwd.h savedir.h strverscmp.h \
 xalloc.h xstrtol.h xstrtoul.h
 
-BUILT_SOURCES = getdate.c lstat.c stat.c
+BUILT_SOURCES = getdate.c lstat.c stat.c strcasecmp.c strncasecmp.c
 
-EXTRA_DIST = xstat.in
+EXTRA_DIST = xstat.in strcasecmp.cin
 lstat.c: xstat.in
 	sed -e '/@IGNORE@/d' -e 's/@xstat@/lstat/g' $(srcdir)/xstat.in > $@-t
 	mv $@-t $@
@@ -34,3 +34,19 @@
 stat.c: xstat.in
 	sed -e '/@IGNORE@/d' -e 's/@xstat@/stat/g' $(srcdir)/xstat.in > $@-t
 	mv $@-t $@
+
+strcasecmp.c: strcasecmp.cin
+	sed \
+	    -e '/@IGNORE@/d' \
+	    -e 's/@xstrcasecmp@/strcasecmp/g' \
+	    -e 's/{{.*}}//g' \
+	  $(srcdir)/strcasecmp.cin > $@-t
+	mv $@-t $@
+
+strncasecmp.c: strcasecmp.cin
+	sed \
+	    -e '/@IGNORE@/d' \
+	    -e 's/@xstrcasecmp@/strncasecmp/g' \
+	    -e 's/{{\(.*\)}}/\1/g' \
+	  $(srcdir)/strcasecmp.cin > $@-t
+	mv $@-t $@