Skip to content

Commit

Permalink
Account for package builders not git cloning and using releases
Browse files Browse the repository at this point in the history
  • Loading branch information
mskdenigma authored and adsr committed Sep 11, 2023
1 parent e4f74f7 commit 4daedf7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,13 @@ phpspy: $(wildcard *.c *.h) vendor/termbox2/termbox2.h
$(CC) $(phpspy_cflags) $(phpspy_includes) $(termbox_inlcudes) $(phpspy_defines) $(phpspy_sources) -o phpspy $(phpspy_ldflags) $(phpspy_libs)

vendor/termbox2/termbox2.h:
git submodule update --init --recursive
cd vendor/termbox2 && git reset --hard
if [ -d "$(CURDIR)/.git" ]; then \
git submodule update --init --recursive; \
cd vendor/termbox2 && git reset --hard; \
else \
cd vendor; \
git clone https://github.com/termbox/termbox2.git; \
fi

test: phpspy $(phpspy_tests)
@total=0; \
Expand Down

0 comments on commit 4daedf7

Please sign in to comment.