mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
d09389ab6f
"Extending FreeIPA" is a developer guide of FreeIPA core framework. Please make sure to improve the guide every time parts of the core framework are affected by your changes. This document ideally should correspond to the current state of the framework. The Guide is written using Emacs Org Mode but can be edited with any plain text editing tool. Emacs is only required to convert it to distribution formats like HTML and TXT. See guide/Makefile for building the guide and README for details of the build environment.
37 lines
878 B
Makefile
37 lines
878 B
Makefile
FILE=guide.org
|
|
XML=$(addsuffix .xml, $(basename $(FILE)))
|
|
PDF=$(addsuffix .pdf, $(basename $(FILE)))
|
|
TXT=$(addsuffix .txt, $(basename $(FILE)))
|
|
HTML=$(addsuffix .html, $(basename $(FILE)))
|
|
FO=$(addsuffix .fo, $(basename $(FILE)))
|
|
|
|
all: $(PDF) $(TXT) $(HTML)
|
|
@echo Finished: $? are created
|
|
|
|
plain: $(FILE)
|
|
@echo -n "Building HTML, Docbook, and plain text ..."
|
|
@emacs -batch -q --no-site-file -eval "(require 'org)" \
|
|
--visit $< -f org-export-as-html \
|
|
--visit $< -f org-export-as-docbook \
|
|
--visit $< -f org-export-as-ascii 2>/dev/null
|
|
@echo "done, see $(HTML), $(XML), $(TXT)"
|
|
|
|
$(TXT): plain
|
|
|
|
$(HTML): plain
|
|
|
|
$(XML): plain
|
|
|
|
$(FO): $(XML)
|
|
@xmlto --skip-validation fo $< 2>/dev/null
|
|
|
|
$(PDF): $(FO)
|
|
@echo -n "Building PDF ... "
|
|
@fop -fo $< -pdf $@ -l en -a 2>/dev/null
|
|
@echo "done, see $(PDF)"
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
@rm -f *.html *.txt *.xml *.fo *.pdf *~
|