From 371b65ff5827e1048511b91be1f9ce656040cb9d Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Wed, 21 Nov 2018 14:24:54 +0100 Subject: [PATCH] fix install directory handling for git and builds The install directly should basically behave like the "build" directory. Since it's tracked by git, containing a gitignore file, we shouldn't have it in the toplevel gitignore (just like the build directory). But then, the toplevel Makefile's real.clean target removes the install directory. This is changed so that only it's content is being removed. --- .gitignore | 1 - Makefile | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0133b837..951c0fc6 100644 --- a/.gitignore +++ b/.gitignore @@ -15,7 +15,6 @@ config/*.old *.log *~ crossgcc -install clean *.map *.sec diff --git a/Makefile b/Makefile index d6b266b1..cad491c3 100644 --- a/Makefile +++ b/Makefile @@ -545,7 +545,7 @@ real.clean: rm -rf "build/$$dir"; \ fi; \ done - rm -rf ./install + cd install && rm -rf -- * else