# this makefile contains development-related targets

include ./common.mk

describe:
	@echo $(RYML_ID)

check: c4core-check workflows-check doxy src


c4core-check:
	$(MAKE) -C ../ext c4core-check
c4core-import:
	$(MAKE) -C ../ext c4core-import
c4core-export:
	$(MAKE) -C ../ext c4core-export


doxy:
	$(MAKE) -C ../doc doxy_test
sphinx:
	$(MAKE) -C ../doc html
doc: doxy sphinx


workflows:
	$(MAKE) -C ../.github/workflows
workflows-check:
	$(MAKE) -C ../.github/workflows test


assets:
	mkdir -p $(ASSETS_DIR)
src: src-pkg amalg
src-pkg: assets
	git-archive-all --prefix $(SRC_NAME) $(ASSETS_DIR)/$(SRC_NAME).src.tgz
	git-archive-all --prefix $(SRC_NAME) $(ASSETS_DIR)/$(SRC_NAME).src.zip
amalg amalgamate: assets
	$(MAKE) -C ../tools amalgamate DST_DIR=$(ASSETS_DIR)
