Skip to content

Commit 1887f22

Browse files
committed
[chg] clean up tools and makefile
1 parent 301b238 commit 1887f22

File tree

7 files changed

+1
-556
lines changed

7 files changed

+1
-556
lines changed

Makefile

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11

22
include tools/Asciidoctor.mk
3-
# include tools/Asciidoc.mk
4-
#include tools/slide.mk
5-

build-with-docker.sh

-10
This file was deleted.

tools/Asciidoc.mk

-135
This file was deleted.

tools/Asciidoctor.mk

+1-39
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,10 @@ endif
2929
REFERENCE_LANG := de
3030

3131
LANG := de en
32-
DOCS ?= $(shell find $(TOP_DIR)/$(REFERENCE_LANG) -type d -name "opsi*" -exec basename {} \;)
3332

3433
FORMATS := html pdf
3534

36-
.PHONY: clean disclean check spell test install build all $(FORMATS)
37-
38-
all: $(FORMATS)
35+
.PHONY: clean disclean check spell test install
3936

4037
clean:
4138
-rm -rf $(DEST_DIR)
@@ -44,13 +41,6 @@ clean:
4441

4542
distclean: clean
4643

47-
48-
build: all
49-
50-
install: build
51-
$(INSTALL) -d $(DESTDIR)/$(SYS_DOC_DIR);
52-
cp -r $(DEST_DIR)/* $(DESTDIR)/$(SYS_DOC_DIR)/
53-
5444
check: clean
5545
$(foreach L,$(LANG), \
5646
$(PYTHON2) tools/check_images.py $(TOP_DIR)/$(L); \
@@ -74,31 +64,3 @@ publish: rename
7464
mv $(PUB_DIR)/pub.tar $(TOP_DIR)
7565

7666
test: check
77-
78-
pdf: $(addsuffix .pdf,$(DOCS))
79-
%.pdf: FORMAT = pdf
80-
81-
html: $(addsuffix .html,$(DOCS))
82-
%.html: FORMAT = html
83-
84-
epub: $(addsuffix .epub,$(DOCS))
85-
%.epub: FORMAT = epub
86-
87-
%: FORMAT ?= $(FORMATS) #$(subst html,xhtml,$(FORMATS))
88-
%:
89-
@$(foreach L,$(LANG),\
90-
$(foreach F,$(FORMAT), \
91-
if [ -f $(TOP_DIR)/$(L)/$(basename $@)/$(basename $@).asciidoc ]; then \
92-
if $(PYTHON) tools/create_docu.py --log-level $(LOG_LEVEL) -l $(L) -o $(F) -s opsi -t opsi -f $(basename $@); then \
93-
echo "INFO: Document $@ built successfully in flavor $(F) for language $(L)"; \
94-
else \
95-
echo "ERROR: Document $@ could not be built for language $(L)"; \
96-
fi \
97-
; \
98-
else \
99-
echo "ERROR: Document $@ does not exist for language $(L)"; \
100-
echo $(TOP_DIR)/$(L)/$(basename $@)/$(basename $@).asciidoc; \
101-
fi \
102-
; \
103-
) \
104-
)

0 commit comments

Comments
 (0)