libsubdir = $(libdir)/gcc-lib/$(target)/$(version)
# Directory for header file assert.h.
includedir = $(prefix)/include
+# assertdir is overridden in cross-make.
+assertdir = $(includedir)
# Extension (if any) to put in installed man-page filename.
manext = .1
# Directory in which to put man pages.
done
# Put assert.h in /usr/local/include, so it won't override GNU libc's assert.h.
# Don't replace the assert.h already there if it is not from GCC.
- if [ -f $(includedir)/assert.h ] && ! grep "__eprintf" $(includedir)/assert.h; \
+ if [ -f $(assertdir)/assert.h ] && ! grep "__eprintf" $(assertdir)/assert.h; \
then true; \
else \
- rm -f $(includedir)/assert.h; \
- $(INSTALL_DATA) $(srcdir)/assert.h $(includedir)/assert.h; \
- chmod a-x $(includedir)/include/assert.h; \
+ rm -f $(assertdir)/assert.h; \
+ $(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
+ chmod a-x $(assertdir)/include/assert.h; \
fi
-rm -f $(libsubdir)/include/varargs.h
$(INSTALL_DATA) $(srcdir)/gvarargs.h $(libsubdir)/include/varargs.h