sambhav2612/karumanchi

Update Makefile

Opened this issue · 6 comments

The current makefile is not working correctly. The intention of the script is to compile all .cpp files in every sub-directory from the root of the project. This is the output I'm currently getting in WIndows 10 with Cygwin environment:

$ make all
g++ -g -O -Wall  ./ch1-introduction ./ch10-sorting ./ch2-recursion-and-backtracking ./ch3-linked-lists ./ch4-stacks ./ch5-queues ./ch6-trees ./codechef/arrays -o all
./ch1-introduction: file not recognized: Is a directory
collect2: error: ld returned 1 exit status
Makefile:12: recipe for target 'all' failed
make: *** [all] Error 1

Please send PR to the update-makefile branch!

I was using wildcard functions to accomplish the same, however, any different approach is more than welcome!

P.S. For reference - https://stackoverflow.com/questions/14028268/proper-method-for-wildcard-targets-in-gnu-make

@sambhav2612 i would like to take up this issue.

Sure, go ahead @piba941!

Any issues for me @sambhav2612 please tell me

@satyamroy001 sure go ahead!