aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTeddy Wing2016-04-27 16:06:56 -0400
committerTeddy Wing2016-04-27 16:06:56 -0400
commite9447a3c6ce3f2c3b057ae71a1949d6663bc1fe7 (patch)
tree9d4900c5532584353accb0e62a561d71c5756a6f /Makefile
parent55ddc252ff0fbbf4149afa6497b5fb407905ef52 (diff)
downloadmutt-alias-auto-add-e9447a3c6ce3f2c3b057ae71a1949d6663bc1fe7.tar.bz2
Makefile: Add some new targets
To save me some time from having to write commands. Started with a `reinstall` target to make it easier to put a new build on my PATH. Then added a `test-all` target so I wouldn't have to use two commands to run both test suites. Needed to create a `test` task also in order to run the unit tests before the integration test. Ensure that we `cargo build` before running integration tests. Otherwise we might be testing against an old build.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3204ff4..c7b665e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,12 @@
test-integration:
+ cargo build
prove -v
+
+test:
+ cargo test
+
+test-all: test test-integration
+
+reinstall:
+ cargo uninstall alias-auto-add
+ cargo install