Skip to content

Commit

Permalink
chore(Makefile): add target test-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kionz committed Jun 6, 2017
1 parent 939893c commit 5a7f906
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,25 @@ release:
cmake . -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
cmake --build build

install:
cmake --build build --target install

uninstall:
cmake --build build --target uninstall

debug:
cmake . -Bdebug-build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug
cmake --build debug-build

install:
cmake --build build --target install

install-debug:
cmake --build debug-build --target install

uninstall:
cmake --build build --target uninstall

uninstall-debug:
cmake --build debug-build --target uninstall

test: release
(cd build/test; ./rime_test)

test-debug: release
(cd build/test; ./rime_test)

3 changes: 3 additions & 0 deletions Makefile.xcode
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ clean:
test: release
(cd xbuild/test; LD_LIBRARY_PATH=../lib/Release Release/rime_test)

test-debug: debug
(cd xdebug/test; Debug/rime_test)

thirdparty:
$(RIME_COMPILER_OPTIONS) make -f Makefile.thirdparty

Expand Down

0 comments on commit 5a7f906

Please sign in to comment.