packages-Makefile.patch 905 Bytes
Newer Older
Albert Gräf's avatar
Albert Gräf committed
1
diff --git a/packages/Makefile b/packages/Makefile
Albert Gräf's avatar
Albert Gräf committed
2
index a360dba7..b5b949b5 100644
Albert Gräf's avatar
Albert Gräf committed
3 4
--- a/packages/Makefile
+++ b/packages/Makefile
Albert Gräf's avatar
Albert Gräf committed
5 6
@@ -377,7 +377,7 @@ doc_format:
 # from the latter by substituting PD_BUILD_VERSION.
Albert Gräf's avatar
Albert Gräf committed
7 8
 
 git_version: $(pd_src)/src/s_stuff.h.in
Albert Gräf's avatar
Albert Gräf committed
9 10 11 12
-	@cd $(pd_src)/src/ && \
+	@test -d $(cvs_root_dir)/.git && cd $(pd_src)/src/ && \
 	sed 's|^\(#define PD_BUILD_VERSION "\).*"|\1$(PD_BUILD_VERSION)"|' s_stuff.h.in > s_stuff.h.new && \
 	(test -f s_stuff.h && diff -q s_stuff.h s_stuff.h.new > /dev/null && rm -f s_stuff.h.new && echo s_stuff.h unchanged || (rm -f s_stuff.h && mv s_stuff.h.new s_stuff.h))
Albert Gräf's avatar
Albert Gräf committed
13
 
Albert Gräf's avatar
Albert Gräf committed
14
@@ -422,7 +422,7 @@ distclean: cruft_clean
Albert Gräf's avatar
Albert Gräf committed
15 16 17 18 19 20 21 22
 	$(MAKE) -C $(abstractions_src) distclean
 	$(MAKE) -C $(extensions_src) distclean
 	$(MAKE) -C $(externals_src) distclean
-	-$(MAKE) -C $(pd_src) distclean
+	-$(MAKE) -C $(pd_src) clean
 
 test_locations:
 	@echo "PD_VERSION: $(PD_VERSION)"