test: $(PKGS:=/test)
%/test:
- ! grep -q '^Test-Suite\>' $*/$*.cabal || \
+ ! grep -q '^Test-Suite\>' $*/hcompta-$*.cabal || \
{ cd $*; stack $(STACK_FLAGS) test $(STACK_TEST_FLAGS); }
clean: $(PKGS:=/clean)
tag: $(PKGS:=/tag)
%/tag:
- cabal=$*/$*.cabal; \
+ cabal=$*/hcompta-$*.cabal; \
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 -f -s -m "$$name v$$version" $$name-$$version
+tar: $(PKGS:=/tar)
+%/tar:
+ cd $*; stack $(STACK_FLAGS) sdist $(STACK_SDIST_FLAGS)
+
upload: $(PKGS:=/upload)
%/upload:
- cd $*; LANG=C stack $(STACK_FLAGS) sdist --sign
- cd $*; LANG=C stack $(STACK_FLAGS) upload .
+ cd $*; LANG=C stack $(STACK_FLAGS) upload $(STACK_UPLOAD_FLAGS) .
.PHONY: stats
stats: