Skip to content

Commit

Permalink
mod make init
Browse files Browse the repository at this point in the history
  • Loading branch information
catatsuy committed Feb 4, 2024
1 parent 47502af commit 3b93cf0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
.PHONY: init
init: webapp/sql/dump.sql
$(MAKE) setup-bench-image
init: webapp/sql/dump.sql benchmarker/userdata/img

webapp/sql/dump.sql:
webapp/sql/dump.sql.bz2:
cd webapp/sql && \
curl -L -O https://github.com/catatsuy/private-isu/releases/download/img/dump.sql.bz2 && \
bunzip2 dump.sql.bz2
bunzip2 -k dump.sql.bz2

.PHONY: setup-bench-image
setup-bench-image:
webapp/sql/dump.sql: webapp/sql/dump.sql.bz2
cd webapp/sql && \
bunzip2 --keep --force dump.sql.bz2

benchmarker/userdata/img.zip:
cd benchmarker/userdata && \
curl -L -O https://github.com/catatsuy/private-isu/releases/download/img/img.zip && \
unzip img.zip

benchmarker/userdata/img: benchmarker/userdata/img.zip
cd benchmarker/userdata && \
unzip -qq -o img.zip

0 comments on commit 3b93cf0

Please sign in to comment.