Skip to content

Commit f499030

Browse files
swillsdormando
authored andcommitted
doc/Makefile: avoid GNU extentions, be tidy
This commit does three things. One is avoiding GNU extentions since they aren't used elsewhere. It also tells xml2rfc to cache in side the build directory to avoid writing outside our own space when building. Finally, it removes the .chk build since that doesn't appear needed.
1 parent 2af4f6e commit f499030

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

doc/Makefile.am

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ BUILT_SOURCES += protocol-binary.txt protocol-binary-range.txt
99
MOSTLYCLEANFILES = protocol-binary.txt protocol-binary-range.txt
1010
endif
1111

12-
%.txt: %.full
13-
@XML2RFC@ $< $@
12+
protocol-binary.txt: $(.TARGET:R).full
13+
@XML2RFC@ -c @abs_builddir@ $(.TARGET:R).full $@
1414

15-
%.chk: %.xml xml2rfc/rfc2629-refchk.xsl
16-
@XSLTPROC@ xml2rfc/rfc2629-refchk.xsl $< >$@
15+
protocol-binary-range.txt: $(.TARGET:R).full
16+
@XML2RFC@ -c @abs_builddir@ $(.TARGET:R).full $@
1717

18-
%.full: %.xml xml2rfc/rfc2629-noinc.xsl
19-
@XSLTPROC@ xml2rfc/rfc2629-noinc.xsl $< >$@
18+
protocol-binary.full: $(.TARGET:R).xml xml2rfc/rfc2629-noinc.xsl
19+
@XSLTPROC@ --nonet xml2rfc/rfc2629-noinc.xsl $(.TARGET:R).xml > $@
20+
21+
protocol-binary-range.full: $(.TARGET:R).xml xml2rfc/rfc2629-noinc.xsl
22+
@XSLTPROC@ --nonet xml2rfc/rfc2629-noinc.xsl $(.TARGET:R).xml > $@
2023

0 commit comments

Comments
 (0)