Update Makefile
:satisfied: DS Problems from karumanchi. This repository follows the C++ Best Practices written by Jason Turner.
Brought to you by:
sambhav2612
Originally created by: sambhav2612
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!
Originally posted by: sambhav2612
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