PKGS := \
hjugement \
- hjugement-protocol
+ hjugement-protocol \
+ hjugement-cli
hjugement-protocol/test: TEST_FLAGS:=
-HS = $(shell find . -name '*.hs' -not -name 'HLint.hs')
+HS = $(shell find $(PKGS) -name '*.hs' -not -name 'HLint.hs')
cabal := $(shell find . -name '*.cabal' -print -quit)
QUICKCHECK_TESTS = 1000
QUICKCHECK_MAXSIZE = 100
HLint.hs: $(HS)
sed -i -e '/^-- BEGIN: generated hints/,/^-- END: Generated by hlint/d' HLint.hs
echo '-- BEGIN: generated hints' >> HLint.hs
- hlint $(foreach p,$(PKGS),--find $p) | grep '^'infix | sort -u >> HLint.hs
+ hlint $(foreach p,$(PKGS),--find $p) | sed -ne 's/^- infix: \(.*\)/\1/p' | sort -u >>HLint.hs
echo '-- END: generated hints' >> HLint.hs
lint: $(PKGS:=/lint) $(HS)