hackernews2nntp
Version:
Post Hacker News Stories & Comments to an NNTP Server
52 lines (36 loc) • 803 B
Plain Text
html :=
clean :=
clobber :=
all:
include mk/debug.mk
include mk/readme.mk
include mk/node.mk
include mk/src.mk
include mk/watch.mk
all: node_modules $(html) compile
clean:
rm -rf $(clean)
$(MAKE) -C test clean
clobber: clean
rm -rf $(clobber)
test: node_modules
$(MAKE) -C test
define help :=
all -- Just compile all
clean -- rm all compiled targets
clobber -- Clean + rm node_modules
test -- Run tests w/ mocha. Or
$$ make test TEST_OPTS='-g pattern'
compile -- compile src/ to lib/
npm-view -- View a would-be npm-package w/o uploading it to the registry
npm -- Publish a package to npm registry
watch -- Use watchman to auto-run 'compile' target
endef
help:
@:
$(info $(help))