From ef6c238d457b92c8a1d90c1f681f37e0b6e6fc49 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 23 Jun 2023 16:12:13 +0200 Subject: [PATCH] buildsys: make build-dir generation atomic Signed-off-by: Thomas Lamprecht --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b1e97e7..74e1edc 100644 --- a/Makefile +++ b/Makefile @@ -20,11 +20,12 @@ update-bindings: .PHONY: $(BUILDSRC) $(BUILDSRC): - -rm -rf $(BUILDSRC) - cp -a $(OPKGNAME) $(BUILDSRC) - cp -a $(UPSTREAM)/xdgmime*.[ch] $(BUILDSRC)/ - perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("$(BUILDSRC)/ppport.h");' - cp -a debian $(BUILDSRC) + -rm -rf $@ $@.tmp + cp -a $(OPKGNAME) $@.tmp + cp -a $(UPSTREAM)/xdgmime*.[ch] $@.tmp/ + perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("$@.tmp/ppport.h");' + cp -a debian $@.tmp + mv $@.tmp $@ .PHONY: dsc dsc: -- 2.39.2