diff -Naur freenx-server-0.7.3/Makefile freenx-server-0.7.3-magellan/Makefile --- freenx-server-0.7.3/Makefile 2012-06-05 13:58:56.473982660 +0200 +++ freenx-server-0.7.3-magellan/Makefile 2012-06-05 16:06:08.053982899 +0200 @@ -1,5 +1,6 @@ .PHONY: all install clean nxenv_install suid_install +SRCDIR = . SHELL = /bin/bash SUBDIRS=nxredir nxviewer-passwd nxserver-helper nxserver-suid nx-session-launcher @@ -7,7 +8,7 @@ all: cd nxviewer-passwd && xmkmf && make Makefiles && make depend - source nxloadconfig &&\ + source $(SRCDIR)/nxloadconfig &&\ export PATH_BIN PATH_LIB CUPS_BACKEND NX_VERSION NX_ETC_DIR &&\ for i in $(SUBDIRS) ; \ do\ @@ -49,7 +50,7 @@ rm -f nxviewer-passwd/libvncauth/Makefile install: - source nxloadconfig &&\ + source $(SRCDIR)/nxloadconfig &&\ export PATH_BIN PATH_LIB CUPS_BACKEND NX_VERSION NX_ETC_DIR &&\ $(MAKE) nxenv_install