Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cr-marcstevens/sha1collisiondetection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Müller <mail@mueller-martin.net>2017-02-28 19:22:19 +0300
committerMartin Müller <mail@mueller-martin.net>2017-02-28 19:22:19 +0300
commitd36711cf9f7f88e050a4b01afd809f2bc031efec (patch)
tree58e8c0418187d63faf4083bdbd3c9bd3c29ae770
parent1dd0db169a109a63a90c3358391be1bc93d3c008 (diff)
Fix/improve creation and removing of bin folder
The "bin" folder was never created explicitly in the Makefile therefore this was added in the according target. This was propably never noticed as the "clean" target did not remove the "bin" folder once created (it only removed its contents). To make sure this gets noticed and to get a "cleaner" state after executing "make clean" the "bin" folder now gets removed completely.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 26b3219..a71c639 100644
--- a/Makefile
+++ b/Makefile
@@ -110,7 +110,7 @@ clean::
-find . -type f -name '*.lo' -print -delete
-find . -type f -name '*.so' -print -delete
-find . -type d -name '.libs' -print | xargs rm -rv
- -rm -rf bin/*
+ -rm -rf bin
.PHONY: test
test: tools
@@ -131,7 +131,7 @@ sha1dcsum_partialcoll: bin/sha1dcsum
library: bin/libdetectcoll.la
bin/libdetectcoll.la: $(FS_OBJ_LIB)
- ${LD} ${CFLAGS} $(FS_OBJ_LIB) -o bin/libdetectcoll.la
+ ${MKDIR} $(shell dirname $@) && ${LD} ${CFLAGS} $(FS_OBJ_LIB) -o bin/libdetectcoll.la
bin/sha1dcsum: $(FS_OBJ_SRC) library
${LD} ${CFLAGS} $(FS_OBJ_SRC) $(FS_OBJ_LIB) -Lbin -ldetectcoll -o bin/sha1dcsum