From 50e44ce22d6b75e7a210abbaff3ba39927fa2ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 29 Jul 2013 03:56:51 +0200 Subject: [PATCH] makefile: Improve readability of settings.py install command --- core/Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/Makefile b/core/Makefile index 15a73287..9204929f 100644 --- a/core/Makefile +++ b/core/Makefile @@ -24,11 +24,10 @@ endif cp backup.py $(DESTDIR)$(PYTHON_QUBESPATH) cp backup.py[co] $(DESTDIR)$(PYTHON_QUBESPATH) ifneq ($(BACKEND_VMM),) - test -r settings-$(SETTINGS_SUFFIX).py && \ - cp settings-$(SETTINGS_SUFFIX).py $(DESTDIR)$(PYTHON_QUBESPATH)/settings.py - test -r settings-$(SETTINGS_SUFFIX).pyc && \ - cp settings-$(SETTINGS_SUFFIX).pyc $(DESTDIR)$(PYTHON_QUBESPATH)/settings.pyc - test -r settings-$(SETTINGS_SUFFIX).pyo && \ - cp settings-$(SETTINGS_SUFFIX).pyo $(DESTDIR)$(PYTHON_QUBESPATH)/settings.pyo + if [ -r settings-$(SETTINGS_SUFFIX).py ]; then \ + cp settings-$(SETTINGS_SUFFIX).py $(DESTDIR)$(PYTHON_QUBESPATH)/settings.py && \ + cp settings-$(SETTINGS_SUFFIX).pyc $(DESTDIR)$(PYTHON_QUBESPATH)/settings.pyc && \ + cp settings-$(SETTINGS_SUFFIX).pyo $(DESTDIR)$(PYTHON_QUBESPATH)/settings.pyo; \ + fi endif make -C storage install