I have a build bash script in the folder of my code which spits out the .o files but, sometimes, I find duplicates in my Home directory.
What's causing this and how do I prevent this?
Here is my build script:
#!/usr/bin/env bash
rm explorer-app
rm *.o
g++ -std=c++11 -fPIC -c *.cpp
g++ -std=c++11 *.o -fPIC -o explorer-app -L/usr/lib/SFML -L/usr/lib/Qt -Wl,-rpath,/usr/lib/SFML -Wl,-rpath,/usr/lib/Qt -lsfml-graphics -lsfml-window -lsfml-system -lQt5Core -lQt5Gui -lQt5Widgets