Skip to content

Commit

Permalink
Fixed non-existent directory error
Browse files Browse the repository at this point in the history
  • Loading branch information
Marios F committed Jun 13, 2018
1 parent 5859b60 commit 2a57378
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ OBJ = $(patsubst $(SRCD)/%.cpp,$(OBJD)/%.o,$(SRC))
TSTD = tests
INSTALL_PATH=/usr/local

$(shell mkdir -p $(OBJD) >/dev/null)

bfk: $(OBJD) $(OBJ)
@echo Linking: $@
@g++ -o bfk $(OBJ) $(LFLAGS)
Expand All @@ -15,9 +17,6 @@ $(OBJD)/%.o: $(SRCD)/%.cpp
@echo Compiling: $(<F)
@g++ $(CFLAGS) -c -o $@ $<

$(OBJD):
@mkdir $(OBJD)

$(OBJD)/%.d: $(SRCD)/%.cpp
@set -e; rm -f $@; \
g++ --std=gnu++11 -MM -MT $(OBJD)/$(*F).o $(CPPFLAGS) $< > $@.$$$$; \
Expand Down

0 comments on commit 2a57378

Please # to comment.