aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile.am
blob: 0761d48f8700ac0ce7ea9317ad19812a27c69be2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
OSMO_GSM_MANUALS_DIR = $(top_srcdir)
EXTRA_DIST = test-usermanual-docinfo.xml \
	test-vty-reference.xml \
	vty \
	test2-vty-reference.xml \
	vty-test2 \
	chapters \
	$(NULL)

# Do not install any of the test pdfs
OSMO_GSM_MANUALS_NO_INSTALL = 1

# Generate adoc file that includes all chapters (OS#4183: glossary.adoc must be the last file)
ASCIIDOC = test-usermanual.adoc
ASCIIDOC_DEPS =
COMMON_CHAPTERS = $(shell find $(OSMO_GSM_MANUALS_DIR)/common/chapters -name '*.adoc' \
			! -name glossary.adoc \
			! -name mgcp_extension_osmux.adoc) \
		  $(OSMO_GSM_MANUALS_DIR)/common/chapters/glossary.adoc
$(ASCIIDOC): $(COMMON_CHAPTERS)
	echo ":gfdl-enabled:" > $@
	echo ":program-name: Test" >> $@
	echo "" >> $@
	echo "Osmo GSM Manuals Shared Content Test" >> $@
	echo "====================================" >> $@
	echo "Oliver Smith <osmith@sysmocom.de>" >> $@
	echo "" >> $@
	for chapter in $(COMMON_CHAPTERS); do \
		echo "include::$${chapter}[]" >> $@; \
	done;
CLEAN_FILES = $(ASCIIDOC)

include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.asciidoc.inc

VTY_REFERENCE = test-vty-reference.xml test2-vty-reference.xml
include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.vty-reference.inc
OSMO_REPOSITORY = osmo-gsm-manuals
include $(OSMO_GSM_MANUALS_DIR)/build/Makefile.common.inc


default: all check


.DEFAULT_GOAL := default
.PHONY: default