From 4672309b68dbb15d5b080d5cd743fea41649a22d Mon Sep 17 00:00:00 2001 From: lcsmuller Date: Fri, 7 Jan 2022 17:39:06 -0300 Subject: [PATCH] fix(Makefile:docs): fix rules hierarchy --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 312778d95..77395d339 100644 --- a/Makefile +++ b/Makefile @@ -124,16 +124,16 @@ purge: clean rm -rf $(C_SPECS_DIR) # prepare files for generating documentation at .github/workflows/gh_pages.yml -docs: $(COGUTILS_DIR) | $(H_SPECS_DIR) +docs: | $(CCORDDOCS_DIR) @ $(MAKE) -C $(SPECS_DIR) clean @ $(MAKE) -C $(SPECS_DIR) gen_headers @ mv $(SPECS_DIR)/specs-code/discord/*.h $(H_SPECS_DIR) -$(H_SPECS_DIR): | $(C_SPECS_DIR) - @ mkdir -p $@ - -$(CCORDDOCS_DIR): +$(CCORDDOCS_DIR): | $(H_SPECS_DIR) git clone https://github.com/cogmasters/concord-docs $@ cp $@/Doxyfile Doxyfile +$(H_SPECS_DIR): | $(C_SPECS_DIR) + @ mkdir -p $@ + .PHONY: all test examples install echo clean purge docs