fix(make): clean was depending on unknown targets

There are no per-program-type docs clean, just made it depend on
docs-all-clean.

Also added the `docs-api|cli` target to the generated per-program-type
make help. It was just missing, even though it existed.
This commit is contained in:
Sebastian Thiel
2015-05-18 10:11:02 +02:00
parent bcf90cbcc8
commit d9ed001b46
2 changed files with 3 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: clean help deps regen-apis license ubuntu-build
.PHONY: help deps regen-apis license ubuntu-build wheezy-build clean
.SUFFIXES:
VENV = .virtualenv/virtualenv.py
@@ -86,6 +86,6 @@ wheezy-build:
regen-apis: | clean-all-api clean-all-cli gen-all-api gen-all-cli license
clean: clean-all-api clean-all-cli
clean: clean-all-api clean-all-cli docs-all-clean
-rm -Rf $(VENV_DIR)
-rm $(API_DEPS) $(CLI_DEPS)

View File

@@ -132,12 +132,7 @@ ${api_clean}:
% endfor
% endfor
% if agsuffix not in ["-api", "-cli"]:
clean-all${agsuffix}: ${space_join(1)} docs-clean${agsuffix}
% else:
clean-all${agsuffix}: ${space_join(1)}
% endif
cargo${agsuffix}: ${space_join(2)}
publish${agsuffix}: | gen-all${agsuffix} ${space_join(4)}
gen-all${agsuffix}: ${space_join(0)}
@@ -164,6 +159,7 @@ docs${agsuffix}: ${' '.join(central_api_index(util.library_to_crate_name(a[0]))
help${agsuffix}:
$(info gen-all${agsuffix} - make all ${make.target_name})
$(info docs${agsuffix} - make all ${make.target_name} documentation)
$(info clean-all${agsuffix} - delete all generated ${make.target_name})
$(info cargo${agsuffix} - run cargo on all ${make.target_name}, use ARGS="args ..." to specify cargo arguments)
$(info publish${agsuffix} - run cargo publish on all ${make.target_name} and remember successful ones with marker files)