From 1b195b15628f3fbd852dce6e0e0f6f0e40ba4702 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Sun, 27 May 2012 22:56:17 +0200 Subject: [PATCH] Use install instead of cp According to the explanation found here: http://en.chys.info/2009/05/install-vs-cp-and-mmap/ , it is better to use `install' than `cp'. This is because, supposedly, `cp' opens the new file in write-only mode and just overwrites it, whereas `install' unlinks it first and then replaces it, making sure that running programs don't start acting strangely. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 25056d4..b436c1d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,6 +7,6 @@ baps1: main.o main.o: main.c $(CC) -c main.c install: baps1 - cp baps1 $(INST_PATH)/baps1 + install baps1 $(INST_PATH)/baps1 clean: rm baps1 *.o