aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Liodden <eriklio@stud.ntnu.no>2017-07-15 16:29:48 +0200
committerErik Liodden <eriklio@stud.ntnu.no>2017-07-15 16:36:17 +0200
commit6a57108df0e3d622a78559e42be76caf5ada5fce (patch)
treebf8208170c38c53181a43883e14aedaa05daff65
parent1132229102f88a17b6745c3b4ae86a55c59c8b69 (diff)
downloadbinary-chopper-6a57108df0e3d622a78559e42be76caf5ada5fce.tar.gz
replace cp with mv in makefile
Move the target binary from src/ instead of copying it. This will keep the tree cleaner and the binary will be included in .gitignore.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8e8b1f5..35a4a0e 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,12 @@ all: prog
prog:
@mkdir -p bin
make -C src
- @cp src/prog ./bin
+ @mv src/prog ./bin
debug:
@mkdir -p bin
make -C src debug
- @cp src/prog ./bin/prog-debug
+ @mv src/prog ./bin/prog-debug
# valgrind:
# @mkdir -p bin