1 PKGS := symantic-grammar symantic-document symantic symantic-lib
7 cd $*; stack $(STACK_FLAGS) build $(STACK_BUILD_FLAGS)
8 .PHONY: $(PKGS) $(foreach p,$(PKGS),$(eval $p: $p/build))
12 ! grep -q '^Test-Suite\>' $*/$*.cabal || \
13 { cd $*; stack $(STACK_FLAGS) test $(STACK_TEST_FLAGS); }
15 clean: $(PKGS:=/clean)
16 cleaner: $(PKGS:=/cleaner)
18 cd $*; stack $(STACK_FLAGS) clean $(STACK_CLEAN_FLAGS)
20 cd $*; stack $(STACK_FLAGS) clean --full $(STACK_CLEAN_FLAGS)
22 %/fast: override STACK_BUILD_FLAGS+=--fast
23 %/fast: override STACK_TEST_FLAGS+=--fast
30 name=$$(sed -ne 's/^name: *\(.*\)/\1/p' "$$cabal"); \
31 version=$$(sed -ne 's/^version: *\(.*\)/\1/p' "$$cabal"); \
32 git tag --merged | grep -Fqx "$$name-$$version" || \
33 git tag -f -s -m "$$name v$$version" $$name-$$version
39 sensible-browser stats/index.html