[scripts] fix: maker cpp project handling

dev
David JULIEN 11 months ago
parent bf676aa089
commit 46fdc12c29
  1. 6
      .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

Loading…
Cancel
Save