Skip to content

Commit

Permalink
trying to make build work
Browse files Browse the repository at this point in the history
  • Loading branch information
tirimid committed Oct 11, 2024
1 parent 8bd0445 commit 41df2cc
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 13 deletions.
File renamed without changes.
20 changes: 7 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
.PHONY: all clean
.PHONY: all

CMF_DIR := cmf
HTML_DIR := html
CMFC := cmfc
STYLE_FILE := style.css

CMF_FILES := $(shell find $(CMF_DIR) -type f -name "*.cmf")
HTML_FILES := $(patsubst $(CMF_DIR)/%.cmf,$(HTML_DIR)/%.html,$(CMF_FILES))
CMF_FILES := $(shell find cmf -type f -name "*.cmf")
HTML_FILES := $(patsubst cmf/%.cmf,html/%.html,$(CMF_FILES))

all: $(HTML_FILES)
cp -r html/* .
rm -rf html

clean:
rm -rf $(HTML_DIR)

$(HTML_DIR)/%.html: $(CMF_DIR)/%.cmf
html/%.html: cmf/%.cmf
@ mkdir -p $@
@ rmdir $@
$(CMFC) -o $@ -s $(STYLE_FILE) $<
cmfc -o $@ -s style.css $<
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 41df2cc

Please sign in to comment.