X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=doc%2Fsrc%2Fuser%2FMakefile;h=70ab002a6472c140bae40c8b55d7a7c4c0b128b9;hb=refs%2Fchanges%2F63%2F4363%2F5;hp=729b7fb406e4482c85445b22d726c58838031f16;hpb=3a2533f97b9ebee99a718530d111278cedb613d1;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/doc/src/user/Makefile b/doc/src/user/Makefile index 729b7fb..70ab002 100644 --- a/doc/src/user/Makefile +++ b/doc/src/user/Makefile @@ -17,9 +17,11 @@ # this uses {X}fm which can be cloned from: https://gitlab.com/rouxware/xfm +XPATH=XFM_PATH=.:/usr/local/share/xfm TFM_PATH=.:/usr/local/share/xfm + docs = user_guide src = user_guide.xfm -imbed_src = cpp_frame.im example1.im example2.im example3.im +imbed_src = cpp_frame.im example1.im example2.im example3.im jhash.im desired_out = rst ps # use care: the output type is used to source the macros based on the type @@ -28,20 +30,20 @@ desired_out = rst ps # references etc. # %.ps: %.xfm - OUTPUT_TYPE=generic_ps XFM_PASS=1 pfm $< /dev/null - OUTPUT_TYPE=generic_ps XFM_PASS=2 pfm $< $@ + $(XPATH) OUTPUT_TYPE=generic_ps XFM_PASS=1 pfm $< /dev/null + $(XPATH) OUTPUT_TYPE=generic_ps XFM_PASS=2 pfm $< $@ %.md: %.xfm - OUTPUT_TYPE=markdown XFM_PASS=1 tfm $< /dev/null - OUTPUT_TYPE=markdown XFM_PASS=2 tfm $< | sed 's/^ //' >$@ + $(XPATH) OUTPUT_TYPE=markdown XFM_PASS=1 tfm $< /dev/null + $(XPATH) OUTPUT_TYPE=markdown XFM_PASS=2 tfm $< | sed 's/^ //' >$@ %.rst: %.xfm - OUTPUT_TYPE=rst XFM_PASS=1 tfm $< /dev/null - GEN_TITLE=1 OUTPUT_TYPE=rst XFM_PASS=2 tfm $< | sed 's/^ //' >$@ + $(XPATH) OUTPUT_TYPE=rst XFM_PASS=1 tfm $< /dev/null + $(XPATH) GEN_TITLE=1 OUTPUT_TYPE=rst XFM_PASS=2 tfm $< | sed 's/^ //; s/ *$$//' >$@ %.txt: %.xfm - OUTPUT_TYPE=txt XFM_PASS=1 tfm $< /dev/null - OUTPUT_TYPE=txt XFM_PASS=2 tfm $< $@ + $(XPATH) OUTPUT_TYPE=txt XFM_PASS=1 tfm $< /dev/null + $(XPATH) OUTPUT_TYPE=txt XFM_PASS=2 tfm $< $@ # ----------------------------------------------------------------------------------- all: $(desired_out:%=user_guide.%) @@ -55,7 +57,7 @@ user_guide.ps: user_guide.xfm $(imbed_src) $(docs:%=%.rst): always publish: user_guide.rst - cp *.rst ../../../docs/ + cp user_guide.rst ../../../docs/user-guide.rst # intermeidate junk that might straggle clean: