--- Makefile.orig +++ Makefile @@ -51,9 +51,9 @@ ERL_DIR := $(shell erl -noshell -eval "io:format([126,115,126,110],[code:root_dir()])" -s erlang halt) ifeq ($(INSTALL_DIR), ) -INSTALLDIR = $(ERL_DIR)/addons/$(ESDL_VSN) +INSTALLDIR = $(DESTDIR)$(ERL_DIR)/addons/$(ESDL_VSN) else -INSTALLDIR = $(INSTALL_DIR)/$(ESDL_VSN) +INSTALLDIR = $(DESTDIR)$(INSTALL_DIR)/$(ESDL_VSN) endif ## I assume that make install are only made on unixes... :-)