$NetBSD: patch-aa,v 1.1.1.1 2011/02/03 19:04:02 drochner Exp $ support DESTDIR --- Makefile.in.orig 2010-11-20 13:28:35.000000000 +0000 +++ Makefile.in @@ -89,36 +89,34 @@ bootstrap-clean: -XBUILD_TOOL=gprbuild install: install.data install.bin - -${MKDIR} ${datadir}/gpr - $(RM) -r ${datadir}/examples/gprbuild - -${MKDIR} ${datadir}/examples/gprbuild - ${CP} -r examples/* ${datadir}/examples/gprbuild - ${RM} -r ${datadir}/doc/gprbuild - -${MKDIR} ${datadir}/doc/gprbuild + -${MKDIR} $(DESTDIR)${datadir}/gpr + -${MKDIR} $(DESTDIR)${datadir}/examples/gprbuild + ${CP} -r examples/* $(DESTDIR)${datadir}/examples/gprbuild + -${MKDIR} $(DESTDIR)${datadir}/doc/gprbuild for format in html txt pdf info; do \ if [ -d doc/$$format ] ; then \ - ${MKDIR} ${datadir}/doc/gprbuild/$$format; \ - ${CP} doc/$$format/* ${datadir}/doc/gprbuild/$$format; \ + ${MKDIR} $(DESTDIR)${datadir}/doc/gprbuild/$$format; \ + ${CP} doc/$$format/* $(DESTDIR)${datadir}/doc/gprbuild/$$format; \ if [ $$format = html ] ; then \ - ${CP} doc/*.png ${datadir}/doc/gprbuild/html; \ + ${CP} doc/*.png $(DESTDIR)${datadir}/doc/gprbuild/html; \ sed -e "s/.*//" doc/gprbuild_gps.xml \ - > ${datadir}/doc/gprbuild/html/gps_index.xml; \ + > $(DESTDIR)${datadir}/doc/gprbuild/html/gps_index.xml; \ fi; \ fi; \ done install.data: force - -${MKDIR} ${datadir}/gprconfig - ${CP} share/gprconfig/*.xml ${datadir}/gprconfig + -${MKDIR} $(DESTDIR)${datadir}/gprconfig + ${CP} share/gprconfig/*.xml $(DESTDIR)${datadir}/gprconfig install.bin: force - -${MKDIR} ${bindir} - ${INSTALL_PROGRAM} gprconfig${EXEXT} ${bindir} - ${INSTALL_PROGRAM} gprbuild${EXEXT} ${bindir} - ${INSTALL_PROGRAM} gprclean${EXEXT} ${bindir} - -${MKDIR} ${libexecdir}/gprbuild - ${INSTALL_PROGRAM} gprbind${EXEXT} ${libexecdir}/gprbuild/ - ${INSTALL_PROGRAM} gprlib${EXEXT} ${libexecdir}/gprbuild/ + -${MKDIR} $(DESTDIR)${bindir} + ${INSTALL_PROGRAM} gprconfig${EXEXT} $(DESTDIR)${bindir} + ${INSTALL_PROGRAM} gprbuild${EXEXT} $(DESTDIR)${bindir} + ${INSTALL_PROGRAM} gprclean${EXEXT} $(DESTDIR)${bindir} + -${MKDIR} $(DESTDIR)${libexecdir}/gprbuild + ${INSTALL_PROGRAM} gprbind${EXEXT} $(DESTDIR)${libexecdir}/gprbuild/ + ${INSTALL_PROGRAM} gprlib${EXEXT} $(DESTDIR)${libexecdir}/gprbuild/ $(objdir)/gprbuild_dummies.o: src/gprbuild_dummies.c gnatgcc -c -o $@ $<