3 * destdir installation support
5 --- Makefile.orig 2003-07-12 13:14:07.000000000 +0000
7 @@ -159,17 +159,17 @@ uninstall-man:
9 ### Install manual pages.
10 install-man: uninstall-man
11 - $(INSTALL) -d $(mandir)
12 + $(INSTALL) -d $(DESTDIR)$(mandir)
13 for i in oo2c oob ooef oowhereis; do \
14 - $(INSTALL_DATA) man/$$i.1 $(mandir)/$$i$(manext); \
15 + $(INSTALL_DATA) man/$$i.1 $(DESTDIR)$(mandir)/$$i$(manext); \
18 install: lib/obj/liboo2c.la bin/oo2c install-man
19 - $(INSTALL) -d $(oocdir)/pkginfo
20 + $(INSTALL) -d $(DESTDIR)$(oocdir)/pkginfo
21 $(BOOTSTRAP_COMPILER) --config oo2crc-install.xml -r lib -r . --install-program "$(INSTALL_PROGRAM)" $(OFLAGS) --install-package liboo2c
22 $(BOOTSTRAP_COMPILER) --config oo2crc-install.xml -r lib -r . --install-program "$(INSTALL_PROGRAM)" $(OFLAGS) --install-package oo2c
23 - $(INSTALL_SCRIPT) rsrc/OOC/oobacktrace $(bindir)/oobacktrace
24 - chmod a+x $(oocdir)/install-sh
25 + $(INSTALL_SCRIPT) rsrc/OOC/oobacktrace $(DESTDIR)$(bindir)/oobacktrace
26 + chmod a+x $(DESTDIR)$(oocdir)/install-sh
29 ${MAKE} INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install