Skip to content

Commit

Permalink
Fix recursive make with variable make
Browse files Browse the repository at this point in the history
  • Loading branch information
leewei05 committed Dec 4, 2023
1 parent bd056f8 commit 7faebdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DEPS = $(OBJS:.o=.d)
all: $(TARGET)

test: $(TARGET)
make -C test/
cd test/ && $(MAKE)

$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o $@
Expand All @@ -54,6 +54,6 @@ main.o: %.o: %.cpp y.tab.hpp

clean:
rm -rf *.s *.o lex.yy.* y.tab.* *.output *.ssa $(TARGET) $(OBJS) $(DEPS)
make -C test/ clean
cd test/ && $(MAKE) clean

-include $(DEPS)

0 comments on commit 7faebdd

Please sign in to comment.