forked from git-pile/git-pile
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 735 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
NOSETESTS := $(shell command -v nosetests-3 || command -v nosetests)
MKDIR_P := mkdir -p
SUBCMDS_NOHELP = init
SUBCMDS = setup genpatches genbranch format-patch baseline destroy am
MAN_PAGES = $(addprefix git-pile-, $(addsuffix .1, $(SUBCMDS)))
pycheck:
@-flake8 --show-source git-*
@-flake8 --show-source
check:
$(NOSETESTS)
FORCE:
git-pile-%.1: FORCE
@$(MKDIR_P) man
@echo -e "#!/bin/bash\nexec ./git-pile $* \"\$$@\"" > git-pile-wrapper-$*
@chmod +x git-pile-wrapper-$*
help2man -n "git pile $*" -N -s 1 --no-discard-stderr ./git-pile-wrapper-$* > man/man1/$@
@rm git-pile-wrapper-$*
man: $(MAN_PAGES)
help2man -n "git pile" -N -s 1 --no-discard-stderr ./git-pile > man/man1/git-pile.1
.PHONY: all pycheck check man