-PKGS := symantic-grammar symantic symantic-lib
+PKGS := symantic-grammar symantic-document symantic symantic-lib
all: build
build: $(PKGS:=/build)
%/build:
cd $*; stack $(STACK_FLAGS) build $(STACK_BUILD_FLAGS)
+.PHONY: $(PKGS) $(foreach p,$(PKGS),$(eval $p: $p/build))
test: $(PKGS:=/test)
%/test:
name=$$(sed -ne 's/^name: *\(.*\)/\1/p' "$$cabal"); \
version=$$(sed -ne 's/^version: *\(.*\)/\1/p' "$$cabal"); \
git tag --merged | grep -Fqx "$$name-$$version" || \
- git tag -s -m "$$name v$$version" $$name-$$version
+ git tag -f -s -m "$$name v$$version" $$name-$$version
.PHONY: stats
stats: