.
authorJim Meyering <jim@meyering.net>
Mon, 3 Oct 1994 03:01:34 +0000 (03:01 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 3 Oct 1994 03:01:34 +0000 (03:01 +0000)
lib/Makefile.in

index b84df8b5fc638eb96caac3ca0ad457e4dae71cde..3965926f1a95b180e88bb19beca3c139205032df 100644 (file)
@@ -58,6 +58,7 @@ all: libfu.a
 .c.o:
        $(CC) -c $(CPPFLAGS) $(DEFS) -I. -I.. -I$(srcdir) $(CFLAGS) $<
 
+subdir = lib
 Makefile: ../config.status Makefile.in
        cd ..; CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
 
@@ -96,8 +97,8 @@ libfu.a: $(OBJECTS)
        $(AR) cr $@ $(OBJECTS)
        -$(RANLIB) $@
 
-extract_stat = sed -e 's/@l@//g' -e 's/@L@//g'
-extract_lstat = sed -e 's/@l@/l/g' -e 's/@L@/L/g'
+extract_stat = sed 's/@l@//g; s/@L@//g; /@LSTAT_ONLY@/d'
+extract_lstat = sed 's/@l@/l/g; s/@L@/L/g; s/  *@LSTAT_ONLY@//'
 
 safe-lstat.c: safe-xstat.cin
        $(extract_lstat) $(srcdir)/safe-xstat.cin > $@-t
@@ -116,7 +117,7 @@ safe-stat.h: safe-xstat.hin
        mv $@-t $@
 
 safe-stat.o: safe-stat.h
-safe-lstat.o: safe-lstat.h
+safe-lstat.o: safe-lstat.h safe-stat.h
 
 # Since this directory contains two parsers, we have to be careful to avoid
 # running two $(YACC)s during parallel makes.  See below.