File tree 1 file changed +5
-42
lines changed
1 file changed +5
-42
lines changed Original file line number Diff line number Diff line change 1
- RUST_CFG ?=
2
- RUST_PATH ?= ./build/
3
- RUSTC ?= rustc
4
-
5
- LIB = build/.timestamp_quickcheck
6
- MACRO_LIB = build/.timestamp_quickcheck_macro
7
-
8
- DIR =src
9
- MACRO_DIR =quickcheck_macros/src
10
-
11
- compile : $(LIB ) $(MACRO_LIB )
12
-
13
- $(LIB ) : $(DIR ) /lib.rs $(DIR ) /arbitrary.rs
14
- @mkdir -p ./build
15
- $(RUSTC ) -O $(DIR ) /lib.rs --out-dir build
16
- @touch $(LIB )
17
-
18
- $(MACRO_LIB ) : $(MACRO_DIR ) /lib.rs
19
- @mkdir -p ./build
20
- $(RUSTC ) -O $(MACRO_DIR ) /lib.rs --out-dir build
21
- @touch $(MACRO_LIB )
1
+ all :
2
+ echo Nothing to do...
22
3
23
4
ctags :
24
5
ctags --recurse --options=ctags.rust --languages=Rust
25
6
26
7
docs :
27
- rm -rf doc
28
- rustdoc $(DIR ) /lib.rs
29
- # WTF is rustdoc doing?
30
- chmod 755 doc
31
- in-dir doc fix-perms
32
- rscp ./doc/* gopher:~ /www/burntsushi.net/rustdoc/
33
-
34
- test : build/test
35
- RUST_TEST_TASKS=1 RUST_LOG=quickcheck=4 ./build/test
36
-
37
- build/test : build $(DIR ) /lib.rs $(DIR ) /arbitrary.rs $(MACRO_DIR ) /lib.rs $(LIB ) $(MACRO_LIB )
38
- $(RUSTC ) -L $(RUST_PATH ) --test $(RUST_CFG ) $(DIR ) /lib.rs -o build/test
39
-
40
- test-examples :
41
- (cd ./examples && ./test)
42
-
43
- test-clean :
44
- rm -rf ./quickcheck-test
45
-
46
- clean : test-clean
47
- rm -f ./build/* $(LIB ) $(MACRO_LIB )
8
+ cargo doc
9
+ in-dir ./target/doc fix-perms
10
+ rscp ./target/doc/* gopher:~ /www/burntsushi.net/rustdoc/
48
11
49
12
push :
50
13
git push origin master
You can’t perform that action at this time.
0 commit comments