################################################################################
#	Makefile to build TMS packages from sources and disk images
#	T.Barnaby,	BEAM Ltd,	2024-08-15
################################################################################
#
TOP	= $(shell pwd)
include Config.mk
#ADIRS		= tms tms-mcsys tms-fpga tms-doc
ADIRS		= tms tms-doc
.PHONY: all install clean
.PHONY: ${ADIRS}
all:: ${ADIRS}
install: ${ADIRS}
clean: ${ADIRS}
clean-all: ${ADIRS}
install-www:
	
${ADIRS}:
	@$(MAKE) -C $@ $(MAKECMDGOALS)
################################################################################
# Source code control
################################################################################
#
gitCheckout:
	git clone $(GIT_URL) .
gitId:
	git rev-parse HEAD
gitListReleases:
	git tag | grep release
gitLog:
	git log
gitDiff:
	git diff -- ':!*doc*'
gitCommit:
	git commit -a
gitTagVersion:
	git tag -m "Tag - $(VERSION)" -a "tag-${VERSION}"
gitRelease:
	-git commit -a -m "Release - $(VERSION)"
	git tag -m "Release - $(VERSION)" -a "release-${VERSION}-${RELEASE}"
gitView:
	gitk
gitUpdate:
	git pull --rebase
gitPush:
	git push
	git push --tags