diff options
author | Tom Willemsen | 2012-05-27 22:56:17 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-05-27 22:56:17 +0200 |
commit | 1b195b15628f3fbd852dce6e0e0f6f0e40ba4702 (patch) | |
tree | 1e3ffdac8bf9ba126574ad02fa04712abe5aa26e | |
parent | 905fa45ed2573d744d742cc4b3204ec4ec9c3a06 (diff) | |
download | baps1-1b195b15628f3fbd852dce6e0e0f6f0e40ba4702.tar.gz baps1-1b195b15628f3fbd852dce6e0e0f6f0e40ba4702.zip |
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.
-rw-r--r-- | src/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
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 |