X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=doc%2Fsrc%2Frtd%2FMakefile;h=5f8cc680c9c5f9ff90f02027271e722868c9af9e;hb=a3a121ca4a0426ec964fa684fb27c397f2ee9e24;hp=878229e080ed59ec03ba04cdaaa1aaeb1ab27f4a;hpb=708ebac12488fe6fb204ff2861fc0045afb73b78;p=ric-plt%2Flib%2Frmr.git diff --git a/doc/src/rtd/Makefile b/doc/src/rtd/Makefile index 878229e..5f8cc68 100644 --- a/doc/src/rtd/Makefile +++ b/doc/src/rtd/Makefile @@ -19,27 +19,27 @@ # This is a stand-alone make file as the RTD documentation is NOT built and packaged # with the normal CMake process and thus isn't covered in the CMake files. -# {X}fm is required to compile the source. +# {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 user-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,10 +52,13 @@ 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;\ for f in *.rst;\ do\ if ! diff -N -q $$f ../../../docs/$$f >/dev/null 2>&1;\ @@ -74,6 +77,9 @@ verify : $(docs:%=%.rst) fi;\ done +test: + bash publish_lib.sh; + # ditch any intermediate files clean: rm -f rel-notes.xfm *.sp *.ca