Support INSTALL_BASE

This commit is contained in:
Dianne Skoll
2022-02-11 10:55:59 -05:00
parent c22ca68857
commit aa1b275b51
2 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ install:
@echo ""
@$(MAKE) -C src install
@$(MAKE) -C rem2html install
@$(MAKE) -C rem2pdf -f Makefile.top install
@$(MAKE) -C rem2pdf -f Makefile.top install INSTALL_BASE=$(INSTALL_BASE)
clean:
find . -name '*~' -exec rm {} \;
-$(MAKE) -C src clean

View File

@@ -29,8 +29,8 @@ install:
if test $$? != 0 ; then echo "Not installing rem2pdf; missing $$m"; exit 0; fi; \
done; \
echo "Installing rem2pdf"; \
if test "$$INSTALL_BASE" != "" ; then \
$(MAKE) install DESTDIR=$(DESTDIR) "INSTALL_BASE=$$INSTALLBASE" && exit 0; \
if test "$(INSTALL_BASE)" != "" ; then \
$(MAKE) install DESTDIR=$(DESTDIR) "INSTALL_BASE=$(INSTALL_BASE)" && exit 0; \
elif test "$(prefix)" = "/usr" ; then \
$(MAKE) install DESTDIR=$(DESTDIR) INSTALLDIRS=vendor && exit 0; \
else \
@@ -39,4 +39,4 @@ install:
exit 1;
Makefile: Makefile.PL
$(PERL) Makefile.PL || true
$(PERL) Makefile.PL INSTALL_BASE=$(INSTALL_BASE) || true