~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert "stg refresh" to the new infrastructure
[stgit]
/
Documentation
/
Makefile
diff --git
a/Documentation/Makefile
b/Documentation/Makefile
index
1c14fe3
..
165e222
100644
(file)
--- a/
Documentation/Makefile
+++ b/
Documentation/Makefile
@@
-1,7
+1,7
@@
COMMANDS = $(shell ../stg-build --commands)
COMMANDS_TXT = $(patsubst %,stg-%.txt,$(COMMANDS))
COMMANDS = $(shell ../stg-build --commands)
COMMANDS_TXT = $(patsubst %,stg-%.txt,$(COMMANDS))
-MAN1_TXT=
$(wildcard stg*.txt)
$(COMMANDS_TXT)
+MAN1_TXT=
stg.txt
$(COMMANDS_TXT)
DOC_HTML=$(patsubst %.txt,%.html,$(MAN1_TXT))
DOC_HTML=$(patsubst %.txt,%.html,$(MAN1_TXT))
@@
-60,11
+60,16
@@
doc.dep : $(wildcard *.txt) build-docdep.perl
-include doc.dep
clean:
-include doc.dep
clean:
- rm -f *.xml *.html *.pdf *.1 doc.dep $(COMMANDS_TXT)
+ rm -f *.xml *.html *.pdf *.1 doc.dep $(COMMANDS_TXT)
command-list.txt
-$(COMMANDS_TXT): $(shell find .. -name '*.py')
+ALL_PY = $(shell find ../stgit -name '*.py')
+
+$(COMMANDS_TXT): $(ALL_PY)
../stg-build --asciidoc $(basename $(subst stg-,,$@)) > $@
../stg-build --asciidoc $(basename $(subst stg-,,$@)) > $@
+command-list.txt: $(ALL_PY)
+ ../stg-build --cmd-list > $@
+
%.html : %.txt
$(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf $(ASCIIDOC_EXTRA) $<
%.html : %.txt
$(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf $(ASCIIDOC_EXTRA) $<