X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=doc%2Fsrc%2Flibrary%2FMakefile;fp=doc%2Fsrc%2Flibrary%2FMakefile;h=ffa8a51d40ba41b74c75a1064dac4801db326c49;hb=06e85b7015b6804e641424a022d0a9ceb282e280;hp=0000000000000000000000000000000000000000;hpb=f68c2ced7de2bdfc475a9282cde91a67d83325de;p=ric-plt%2Flib%2Frmr.git diff --git a/doc/src/library/Makefile b/doc/src/library/Makefile new file mode 100644 index 0000000..ffa8a51 --- /dev/null +++ b/doc/src/library/Makefile @@ -0,0 +1,64 @@ + +#================================================================================== +# Copyright (c) 2019 Nokia +# Copyright (c) 2018-2019 AT&T Intellectual Property. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +#================================================================================== + +%.ps: %.xfm + pfm $< $@ + +%.md: %.xfm + OUTPUT_TYPE=markdown tfm $< stdout | sed 's/^ //' >$@ + +%.rst: %.xfm + OUTPUT_TYPE=rst tfm $< stdout | sed 's/^ //' >$@ + +%.txt: %.xfm + OUTPUT_TYPE=txt tfm $< stdout + OUTPUT_TYPE=txt tfm $< $@ + +%.pdf: %.ps + gs -dQUIET -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=$@ $< + +src = user.xfm advanced_use.im api_qref.im code_appendix.im code_send.im config.im failures.im general_use.im glossary.im index_snatch.im setup.im mbuf.im front_junk.im license.im +code_src = $(shell ls code_*.im) + +all: user.pdf user.txt user.rst user.md + +# two pass build for pfm to allow for toc insertion +user.ps: $(src) $(code_src) + XFM_PASS=1 pfm $< /dev/null + XFM_PASS=2 pfm $< $@ + +user.md: $(src) $(code_src) + OUTPUT_TYPE=markdown XFM_PASS=1 tfm $< /dev/null + OUTPUT_TYPE=markdown XFM_PASS=2 tfm $< $@ + +user.rst: $(src) $(code_src) + OUTPUT_TYPE=rst XFM_PASS=1 tfm $< /dev/null + OUTPUT_TYPE=rst XFM_PASS=2 tfm $< $@ + +user.txt: $(src) $(code_src) + OUTPUT_TYPE=txt XFM_PASS=1 tfm $< /dev/null + OUTPUT_TYPE=txt XFM_PASS=2 tfm $< $@ + +# intermeidate junk that might straggle +clean: + rm -fr *.bcnfile *.ca *.ecnfile + +# Anything that can be built +nuke: clean + rm -fr *.ps *.pdf *.txt *.rst +