diff --git a/.local/bin/maker b/.local/bin/maker index 6189d5b..1637334 100755 --- a/.local/bin/maker +++ b/.local/bin/maker @@ -11,15 +11,15 @@ ###################################################################### -headers_list="$(ls | grep '.h$')" -sources_list="$(ls | grep '.cp*$')" +headers_list="$(ls | grep '\.hp*$')" +sources_list="$(ls | grep '\.cp*$')" modules_list="$(printf "\n$sources_list" | sed 's/\.cp*//g' | tr '\n' ' ')" targets_list="$(printf "\n$sources_list" | sed 's/\.cp*/\.o/g' | tr '\n' ' ')" get_compiler(){ for source_ in "$sources_list"; do case "$source_" in - *.cpp) comp="g++" && return;; + *.cpp) comp="g++";; *.c) comp="gcc";; esac done