Skip to content

Commit

Permalink
Merge pull request #2015 from dusk-network/issue-2008
Browse files Browse the repository at this point in the history
Add doc cmd to Makefiles
  • Loading branch information
Neotamandua authored Jul 24, 2024
2 parents 1a4f7bb + 29eb444 commit 66acccf
Show file tree
Hide file tree
Showing 18 changed files with 60 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ clippy: ## Run clippy
$(MAKE) -C ./node $@
$(MAKE) -C ./rusk/ $@

doc: ## Run doc gen
$(MAKE) -j -C ./circuits $@
$(MAKE) -C ./consensus $@
$(MAKE) -j1 -C ./contracts $@
$(MAKE) -C ./node $@
$(MAKE) -C ./node-data $@
$(MAKE) -C ./rusk/ $@
$(MAKE) -C ./rusk-abi $@
$(MAKE) -C ./rusk-profile $@
$(MAKE) -C ./rusk-prover/ $@
$(MAKE) -C ./rusk-recovery $@

run: keys state web-wallet ## Run the server
$(MAKE) -C ./rusk/ $@

Expand Down
2 changes: 2 additions & 0 deletions circuits/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ test: ## Run all the tests for the circuits

clippy: $(SUBDIRS) ## Run clippy

doc: $(SUBDIRS) ## Run doc gen

$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)

Expand Down
3 changes: 3 additions & 0 deletions circuits/license/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ test: ## Run the transfer circuits tests
clippy: ## Run clippy
@cargo clippy --all-features --release -- -D warnings

doc: ## Run doc gen
@cargo doc --release

.PHONY: all test help
3 changes: 3 additions & 0 deletions consensus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ test: ## Run tests
clippy: ## Run clippy
@cargo clippy --all-features --release -- -D warnings

doc: ## Run doc gen
@cargo doc --release

clean:
@cargo clean

Expand Down
2 changes: 2 additions & 0 deletions contracts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ wasm: $(SUBDIRS) ## Generate the WASM for all the contracts

clippy: $(SUBDIRS) ## Run clippy

doc: $(SUBDIRS) ## Run doc gen

$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)

Expand Down
5 changes: 4 additions & 1 deletion contracts/alice/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ wasm: ## Generate the optimized WASM for the contract given
-Z build-std=core,alloc,panic_abort \
-Z build-std-features=panic_immediate_abort \
--target wasm32-unknown-unknown
clippy:

test:

clippy:

doc:

.PHONY: all test wasm
2 changes: 2 additions & 0 deletions contracts/bob/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ test:

clippy:

doc:

.PHONY: all test wasm
2 changes: 2 additions & 0 deletions contracts/host_fn/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ test:

clippy:

doc:

.PHONY: all test wasm
3 changes: 3 additions & 0 deletions contracts/license/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ clippy: ## Run clippy
@cargo clippy --all-features --release -- -D warnings
@cargo clippy -Z build-std=core,alloc --release --target wasm32-unknown-unknown -- -D warnings

doc: ## Run doc gen
@cargo doc --release

.PHONY: all check test wasm help
3 changes: 3 additions & 0 deletions contracts/stake/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ clippy: ## Run clippy
@cargo clippy --all-features --release -- -D warnings
@cargo clippy -Z build-std=core,alloc --release --target wasm32-unknown-unknown -- -D warnings

doc: ## Run doc gen
@cargo doc --release

.PHONY: all check test wasm help
3 changes: 3 additions & 0 deletions contracts/transfer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ clippy: ## Run clippy
@cargo clippy --all-features --release -- -D warnings
@cargo clippy -Z build-std=core,alloc --release --target wasm32-unknown-unknown -- -D warnings

doc: ## Run doc gen
@cargo doc --release

.PHONY: all check test wasm help
3 changes: 3 additions & 0 deletions node-data/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ clean:
clippy: ## Run clippy
@cargo clippy --all-features --release -- -D warnings

doc: ## Run doc gen
@cargo doc --release

.PHONY: test help clean
3 changes: 3 additions & 0 deletions node/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ clippy: ## Run clippy
@cargo clippy --all-features --release -- -D warnings
@cargo check --benches

doc: ## Run doc gen
@cargo doc --release

.PHONY: test help binary clean
3 changes: 3 additions & 0 deletions rusk-abi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ clippy: ## Run clippy
@cargo clippy --release -- -D warnings
@cargo clippy --no-default-features --features=host --release -- -D warnings

doc: ## Run doc gen
@cargo doc --release

.PHONY: all help test
3 changes: 3 additions & 0 deletions rusk-profile/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ test: $(SUBDIRS)
clippy: ## Run clippy
@cargo clippy --release -- -D warnings

doc: ## Run doc gen
@cargo doc --release

$(SUBDIRS):
$(MAKE) -C $@

Expand Down
3 changes: 3 additions & 0 deletions rusk-prover/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ clippy: ## Run clippy
@cargo clippy --release -- -D warnings
@cargo clippy --release --no-default-features -- -D warnings

doc: ## Run doc gen
@cargo doc --release

.PHONY: all help test clippy
3 changes: 3 additions & 0 deletions rusk-recovery/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ clippy: ## Run clippy
@cargo clippy --release --no-default-features --features state -- -D warnings
@cargo clippy --release --no-default-features --features keys -- -D warnings

doc: ## Run doc gen
@cargo doc --release

.PHONY: test clippy help
3 changes: 3 additions & 0 deletions rusk/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ clippy: ## Run clippy
-- -D warnings
@cargo check --benches --features testwallet

doc: ## Run doc gen
@cargo doc --release

build: ## Build rusk binary
@cargo build --release

Expand Down

0 comments on commit 66acccf

Please sign in to comment.