Avoid problems with relative $(srcdir) when installing syslimits.h.

From-SVN: r3251
This commit is contained in:
Ian Lance Taylor 1993-01-15 06:10:54 +00:00
parent a2468e45b4
commit ff852b457f

View File

@ -1268,12 +1268,11 @@ stmp-headers: stmp-fixincludes $(USER_H) gvarargs.h gstdarg.h gstddef.h gsyslimi
cp $$realfile $$objdir/include; \
chmod a+r $$objdir/include/$$realfile; \
done
-cd include; \
if [ -f limits.h ]; then \
rm -f syslimits.h; \
mv limits.h syslimits.h; \
if [ -f include/limits.h ]; then \
rm -f include/syslimits.h; \
mv include/limits.h include/syslimits.h; \
else \
cp $(srcdir)/gsyslimits.h syslimits.h; \
cp $(srcdir)/gsyslimits.h include/syslimits.h; \
fi
chmod a+r include/syslimits.h
cp $(srcdir)/gvarargs.h include/varargs.h