From a86de77b8139f51a7fa82f87be72719cbeb64125 Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Sat, 10 Mar 2018 22:28:18 +0100
Subject: [PATCH] Fix an editing blunder which broke incremental builds, and
 add removal of the build dir to the clean target in the toplevel Makefile.

---
 Makefile                  | 1 +
 l2ork_addons/tar_em_up.sh | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 976a0f2ef..9b93a9a1a 100644
--- a/Makefile
+++ b/Makefile
@@ -66,6 +66,7 @@ clean:
 	cd Gem/src/ && rm -rf ./.libs && rm -rf ./*/.libs
 	cd Gem/ && test -f Makefile && make distclean || true
 	cd Gem/ && rm -f gemglutwindow.pd_linux Gem.pd_linux
+	rm -rf packages/*/build/
 
 realclean:
 # This requires a working copy of the git repo.
diff --git a/l2ork_addons/tar_em_up.sh b/l2ork_addons/tar_em_up.sh
index 774644561..a7d7247bd 100755
--- a/l2ork_addons/tar_em_up.sh
+++ b/l2ork_addons/tar_em_up.sh
@@ -299,8 +299,8 @@ then
 		cp ../../pd/src/m_pd.h ../../externals/build/include
 		cp ../../pd/src/s_stuff.h ../../externals/build/include
 		cp ../../pd/src/g_all_guis.h ../../externals/build/include
+		rm -rf build/
 	fi
-	rm -rf build/
 	if [ $rpi -eq 0 ]
 	then
 		echo "installing desktop version..."
-- 
GitLab