Skip to content

Commit

Permalink
Cleanup makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Dec 27, 2023
1 parent 59b694e commit 7adfbdd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,21 @@ $(PWD)/html/assets/js/%.js: orig/assets/js/%.js
#endif

# Generated content
GENERATED_FILES := $(PWD)/html/doc.html \
$(PWD)/html/doc-@@VERSION@@/reference.html \
GENERATED_FILES := $(PWD)/html/doc-@@VERSION@@/reference.html \
$(PWD)/html/doc-@@VERSION@@/reference-extras.html \
$(PWD)/html/doc-@@VERSION@@/reference-deprecated.html \
$(PWD)/html/doc-@@VERSION@@/protocols.html \
$(PWD)/html/doc-@@VERSION@@/settings.html
generated_files_subst = $(subst @@VERSION@@,$(version),$(GENERATED_FILES))
generated_files := $(foreach version,$(VERSIONS),$(generated_files_subst))
generated_files := $(PWD)/html/doc.html $(foreach version,$(VERSIONS),$(generated_files_subst))

all: language.dtd $(PWD)/html $(HTML) $(JS) $(generated_files)
@find html -name '.git' | xargs rm -rf --

MODULES_INC := $(wildcard $(PWD)/../ocaml-*/src)

generate_release_content: content/doc-$(DEFAULT_VERSION) $(PWD)/content/doc-$(DEFAULT_VERSION)/settings.md $(PWD)/content/doc-$(DEFAULT_VERSION)/protocols.md $(PWD)/content/doc-$(DEFAULT_VERSION)/reference-deprecated.md $(PWD)/content/doc-$(DEFAULT_VERSION)/reference.md $(PWD)/content/doc-$(DEFAULT_VERSION)/reference-extras.md
generated_release_files := $(subst @@VERSION@@,$(DEFAULT_VERSION),$(GENERATED_FILES))
generate_release_content: $(patsubst %.html,%.md,$(release_generated_files))

content/doc-$(DEFAULT_VERSION):
rm -rf /tmp/liquidsoap-doc-$(DEFAULT_VERSION)
Expand Down

0 comments on commit 7adfbdd

Please sign in to comment.