aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-10-19 05:11:57 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2018-11-28 17:15:33 +0100
commit607229a77573cb197b728a17c15426c229f2b672 (patch)
treec3d30e301d5c93dcc0166a08ceb332c234a29617
parent74689530457a1e32e5ad05e35d8a4a5c423fa002 (diff)
refactor Makefile build rules, don't use the FORCE
The initial goal was to make sure we don't have overall FORCE rules causing unnecessary rebuilds -- annoying while writing documentation. As I looked through possible dependencies, I finally understood what's going on here. Remove code dup and nicely sort which belongs where in build/Makefile.*.inc. In each, describe in a top comment how to use it, and also unify how they are used: - Rename Makefile.inc to Makefile.docbook.inc and refactor - Add Makefile.vty-reference.inc - Add Makefile.common.inc Make sure that we accurately pick up all dependencies. Drop use of the macro called 'command', that silenced the actual command lines invoked and replaced them with short strings: it obscures what is actually going on and makes the Makefiles hard to read and understand. Each manual's makefile is greatly reduced to few definitions and a Makefile include, e.g. one for asciidoc, one for VTY reference. Move common/bsc_vty_additions.xml to OsmoBSC/vty/libbsc_vty_additions.xml, link from OsmoNITB. It applies only to OsmoBSC and OsmoNITB. Add a script that combines a VTY reference file with *all* additions files found in a manual's vty/ dir. Call this from Makefile.vty-reference.inc. Change-Id: I9758e04162a480e28c7dc83475b514cf7fd25ec0
-rw-r--r--doc/manuals/Makefile13
1 files changed, 4 insertions, 9 deletions
diff --git a/doc/manuals/Makefile b/doc/manuals/Makefile
index 79d414f..43c5a37 100644
--- a/doc/manuals/Makefile
+++ b/doc/manuals/Makefile
@@ -1,12 +1,7 @@
-TOPDIR := ..
-ASCIIDOCS := osmo-gsm-tester-manual
+TOPDIR = ..
+ASCIIDOC = osmo-gsm-tester-manual.adoc
+ASCIIDOC_DEPS = chapters/*.adoc
include $(TOPDIR)/build/Makefile.asciidoc.inc
-include $(TOPDIR)/build/Makefile.inc
-osmo-gsm-tester-manual.pdf: chapters/*.adoc
-
-clean:
- -rm -rf $(cleanfiles)
- -rm osmo-gsm-tester-manual__*.svg
- -rm osmo-gsm-tester-manual__*.png
+include $(TOPDIR)/build/Makefile.common.inc