Skip to content

Commit

Permalink
improve makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
bozbalci committed Jan 13, 2020
1 parent 2fb7a79 commit 690a5a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assignments/hw3/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hw3_flat: flat.cpp
hw3_sphere: sphere.cpp
$(CXX) sphere.cpp -o hw3_sphere $(CXXFLAGS) $(LDFLAGS)

.PHONY += codegen
.PHONY += codegen codegen-build codegen-clean clean
codegen:
cd code_generation; python3 ./generate.py flat.cpp > ../flat.cpp
clang-format -i flat.cpp
Expand All @@ -31,5 +31,8 @@ codegen:

codegen-build: codegen hw3_flat hw3_sphere

codegen-clean:
rm -f flat.cpp sphere.cpp

clean:
rm -rf *.o *.dSYM hw3_flat hw3_sphere

0 comments on commit 690a5a2

Please sign in to comment.