X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=doc%2Fsrc%2Frtd%2FMakefile;h=dc8f4bec16c3fcc4f0918a9378ff39e534147705;hb=6b0369579da03d3ddd867211072ecd6a490339d9;hp=a401f01de36eed9c167bca418cebd69fc391da03;hpb=5a9d175bb17fcc71aa19fc23458e485830b97e0a;p=ric-plt%2Flib%2Frmr.git diff --git a/doc/src/rtd/Makefile b/doc/src/rtd/Makefile index a401f01..dc8f4be 100644 --- a/doc/src/rtd/Makefile +++ b/doc/src/rtd/Makefile @@ -22,24 +22,24 @@ # {X}fm is required to compile the source. -%.rst:: %.xfm man_list.im +%.rst:: %.xfm OUTPUT_TYPE=rst tfm $< | sed 's/^ //' >$@ -%.ps:: %.xfm man_list.im +%.ps:: %.xfm OUTPUT_TYPE=ps pfm $< $@ -%.txt:: %.xfm man_list.im +%.txt:: %.xfm OUTPUT_TYPE=txt tfm $< $@ -%.md:: %.xfm man_list.im +%.md:: %.xfm OUTPUT_TYPE=markdown tfm $< | sed 's/^ //' >$@ -docs = config-deploy developer-guide rel-notes overview +%.html:: %.xfm + OUTPUT_TYPE=html hfm $< $@ -all:: $(docs:%=%.rst) $(docs:%=%.txt) $(docs:%=%.md) +docs = config-deploy developer-guide rel-notes -man_list.im:: always - bash gen_man_list.sh >man_list.im +all:: $(docs:%=%.rst) $(docs:%=%.txt) $(docs:%=%.md) rel-notes.xfm:: always ksh fmt_changes.ksh >rel-notes.xfm @@ -52,17 +52,19 @@ rel-notes.xfm:: always $(docs:%=%.rst): always $(docs:%=%.txt): always $(docs:%=%.md): always +$(docs:%=%.html): always # copy the .rst files which have changed into the docs (plural) directory at the root of the repo publish : $(docs:%=%.rst) bash publish_man.sh;\ bash publish_lib.sh;\ + bash scrape_types.sh;\ for f in *.rst;\ do\ if ! diff -N -q $$f ../../../docs/$$f >/dev/null 2>&1;\ then\ - cp -p $$f ../../../docs/;\ + sed 's/ *$$//' $$f >../../../docs/$${f##*/};\ fi;\ done