# Copyright (C) 2016, 2017, 2018, 2019, 2020, 2021  Stefan Vargyas
# 
# This file is part of Json-Type.
# 
# Json-Type is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# Json-Type is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with Json-Type.  If not, see <http://www.gnu.org/licenses/>.

TARGETS = default clean allclean all litex

.PHONY: ${TARGETS}

default all:
	cd github && ${MAKE} -f github.mk $@
	cd test-type && ${MAKE} -f test-type.mk $@

clean allclean:
	cd github && ${MAKE} -f github.mk $@
	cd github-litex && ${MAKE} -f github-litex.mk $@
	cd test-type && ${MAKE} -f test-type.mk $@
	cd test-litex && ${MAKE} -f test-litex.mk $@
	cd test-expr-dup && ${MAKE} -f test-expr-dup.mk $@

litex:
	cd github-litex && ${MAKE} -f github-litex.mk
	cd test-litex && ${MAKE} -f test-litex.mk
	cd test-expr-dup && ${MAKE} -f test-expr-dup.mk


