Skip to content

Commit

Permalink
Rebuild compile_flags.txt when Makefile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthayhurst committed Sep 3, 2024
1 parent 6028148 commit 4c842c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ $(OBJECT_DIR)/threadDemo.o: ./src/threadDemo.cpp $(AMMONITE_HEADER_SOURCE)
@mkdir -p "$(OBJECT_DIR)"
$(CXX) ./src/threadDemo.cpp -c $(CXXFLAGS) -o "$@"

$(BUILD_DIR)/compile_flags.txt: $(ALL_OBJECTS_SOURCE)
$(BUILD_DIR)/compile_flags.txt: Makefile
@mkdir -p "$(BUILD_DIR)"
@rm -fv "$(BUILD_DIR)/compile_flags.txt"
@for arg in $(CXXFLAGS); do \
Expand Down

0 comments on commit 4c842c8

Please sign in to comment.