Skip to content

Commit

Permalink
Create dirs on install
Browse files Browse the repository at this point in the history
  • Loading branch information
utzig committed Mar 13, 2018
1 parent 5fe604f commit 76e8afb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lm4flash/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ install: $(EXE)
ifndef PREFIX
$(error PREFIX is not set)
endif
install $^ $(PREFIX)/bin/$^
mkdir -p $(PREFIX)/bin
install $^ $(PREFIX)/bin/

clean:
rm -f *.o $(EXE)
Expand Down
3 changes: 2 additions & 1 deletion lmicdiusb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ install: lmicdi
ifndef PREFIX
$(error PREFIX is not set)
endif
@install $^ $(PREFIX)/bin/$^
mkdir -p $(PREFIX)/bin
install $^ $(PREFIX)/bin/

.PHONY: all clean

Expand Down

0 comments on commit 76e8afb

Please sign in to comment.