Skip to content

Commit

Permalink
build: added Makefile option SKIP_SERVER_RUST
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Jan 5, 2022
1 parent d3bbcba commit 122613b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ build:
make --directory=aw-watcher-afk build
make --directory=aw-watcher-window build
make --directory=aw-server build SKIP_WEBUI=$(SKIP_WEBUI)
ifndef SKIP_SERVER_RUST # Skip building aw-server-rust if SKIP_SERVER_RUST is defined
make --directory=aw-server-rust build SKIP_WEBUI=$(SKIP_WEBUI)
endif
make --directory=aw-qt build
# The below is needed due to: https://github.com/ActivityWatch/activitywatch/issues/173
make --directory=aw-client build
Expand Down Expand Up @@ -143,11 +145,11 @@ package:
#
make --directory=aw-server package
cp -r aw-server/dist/aw-server dist/activitywatch
#
ifndef SKIP_SERVER_RUST
make --directory=aw-server-rust package
mkdir -p dist/activitywatch/aw-server-rust
cp -r aw-server-rust/target/package/* dist/activitywatch/aw-server-rust
#
endif
make --directory=aw-qt package
cp -r aw-qt/dist/aw-qt/. dist/activitywatch
# Remove problem-causing binaries, see https://github.com/ActivityWatch/activitywatch/issues/161
Expand Down

0 comments on commit 122613b

Please sign in to comment.