Skip to content

Commit

Permalink
Dev: doc: add website target in Makefile (ClusterLabs#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Apr 11, 2024
1 parent 86f1982 commit 4ab2e70
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: all clean subdirs
.PHONY: all clean subdirs website website-clean

all: subdirs crm.8.html
all: crm.8.html generated-sources/crm.8.aio.adoc

generated-sources:
mkdir -p $@
Expand All @@ -11,14 +11,23 @@ generated-sources/Makefile: crm.8.adoc generated-sources
subdirs: generated-sources/Makefile
$(MAKE) -C generated-sources all

generated-sources/crm.8.adoc: crm.8.adoc generated-sources
generated-sources/crm.8.adoc: crm.8.adoc subdirs
adocxt gen-include < $< > $@

generated-sources/crm.8.aio.adoc: generated-sources/crm.8.adoc generated-sources/profiles.adoc
adocaio $< > $@

generated-sources/profiles.adoc: profiles.adoc generated-sources
cp $< $@

crm.8.html: generated-sources/crm.8.adoc generated-sources/profiles.adoc subdirs
crm.8.html: generated-sources/crm.8.aio.adoc
asciidoctor $<

clean:
website: generated-sources/crm.8.adoc
$(MAKE) -C website-v1 all

website-clean:
$(MAKE) -C website-v1 clean

clean: website-clean
$(RM) -r generated-sources crm.8.html

0 comments on commit 4ab2e70

Please sign in to comment.