diff options
author | Martin Müller <mail@mueller-martin.net> | 2017-02-28 19:22:19 +0300 |
---|---|---|
committer | Martin Müller <mail@mueller-martin.net> | 2017-02-28 19:22:19 +0300 |
commit | d36711cf9f7f88e050a4b01afd809f2bc031efec (patch) | |
tree | 58e8c0418187d63faf4083bdbd3c9bd3c29ae770 | |
parent | 1dd0db169a109a63a90c3358391be1bc93d3c008 (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-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |