From 691a4bf708ce6134595200a0ce49f6220847a4e7 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sat, 9 Jul 2016 15:58:28 +0200 Subject: [PATCH] Make sure that also in source builds work --- cscripts/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cscripts/Makefile.am b/cscripts/Makefile.am index a4677f1..40f94e8 100644 --- a/cscripts/Makefile.am +++ b/cscripts/Makefile.am @@ -186,10 +186,12 @@ install-data-hook: # Files to be removed in build directory clean-local: - rm -rf $(builddir)/cs*.py - rm -rf $(builddir)/obsutils.py + @if @srcdir@ != @builddir@; then \ + rm -rf $(builddir)/cs*.py; \ + rm -rf $(builddir)/obsutils.py; \ + rm -rf $(builddir)/*.par; \ + fi; \ rm -rf $(builddir)/*.pyc - rm -rf $(builddir)/*.par # Uninstall the cscripts Python module uninstall-local: -- libgit2 0.21.4