Files
karma/make/vars.mk
2023-12-01 09:53:56 +00:00

11 lines
476 B
Makefile

NAME := karma
VERSION ?= $(shell git describe --tags --always --dirty='-dev')
# define a recursive wildcard function, we'll need it to find deeply nested
# sources in the ui directory
# based on http://blog.jgc.org/2011/07/gnu-make-recursive-wildcard-function.html
rwildcard = $(foreach d, $(wildcard $1*), $(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d))
SOURCES_GO = $(call rwildcard, cmd internal, *)
SOURCES_JS = $(call rwildcard, ui/dist/index.html ui/src, *)