Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TARGET := $(MAKECMDGOALS)
- CXX_FLAGS := -std=c++11
- $(TARGET): force-clean
- g++ $(TARGET).cpp $(CXX_FLAGS) -o $(TARGET) && ./$(TARGET)
- force-clean:
- \rm -f $(TARGET)
- # given source file name: 100.cpp
- # just enter `make 100` to build and run it
- # if you have a lot of "single c++ file", it's your good friend!
Add Comment
Please, Sign In to add comment