From a09f66adacac7edeedf0232bd80fe46fce3130a2 Mon Sep 17 00:00:00 2001 From: Brandon Invergo Date: Sun, 19 May 2013 15:40:25 +0200 Subject: [PATCH] better handle installation to another directory --- Makefile.in | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index bfcc257f..baf89de8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -70,7 +70,11 @@ ifneq ($(VIRTUALENV),no) else $(PYTHON) $(srcdir)/setup.py install --prefix=$(DESTDIR)$(prefix) endif - $(INSTALL_DATA) $(srcdir)/Makefile $(DESTDIR)$(prefix)/Makefile + if [[ $(DESTDIR)$(prefix) != $(srcdir) ]]; then + $(INSTALL_DATA) $(srcdir)/Makefile $(DESTDIR)$(prefix)/Makefile + $(INSTALL_DATA) $(srcdir)/lazycelery.sh $(DESTDIR)$(prefix)/lazycelery.sh + $(INSTALL_DATA) $(srcdir)/lazyserver.sh $(DESTDIR)$(prefix)/lazyserver.sh + fi # The same as "install", except use the "develop" setup.py target develop: installdirs @@ -84,7 +88,11 @@ ifneq ($(VIRTUALENV),no) else $(PYTHON) $(srcdir)/setup.py develop --prefix=$(DESTDIR)$(prefix) endif - $(INSTALL_DATA) $(srcdir)/Makefile $(DESTDIR)$(prefix)/Makefile + if [[ $(DESTDIR)$(prefix) != $(srcdir) ]]; then + $(INSTALL_DATA) $(srcdir)/Makefile $(DESTDIR)$(prefix)/Makefile + $(INSTALL_DATA) $(srcdir)/lazycelery.sh $(DESTDIR)$(prefix)/lazycelery.sh + $(INSTALL_DATA) $(srcdir)/lazyserver.sh $(DESTDIR)$(prefix)/lazyserver.sh + fi # setup.py doesn't (yet) support an uninstall command, so until it does, you -- 2.25.1