WEBROOT := https://f3nx.neocities.org PAGES := $(shell find -L page -name '*.html') PAGES := $(patsubst %.html,../%/index.html,$(PAGES)) POSTS := $(shell find -L post -name '*.html') POSTS := $(patsubst %.html,../%/index.html,$(POSTS)) TITLE_SUFFIX := &\#9851; SED_REMOVE_HTML_TAGS := sed -e 's/<[^>]*>//g' SED_REMOVE_AND := sed -e 's/\ / /g' # Count all words in file $1 (without HTML tags) and divide through WORDS_READ_PER_MINUTE := 200 define reading_time $(shell echo $(shell $(SED_REMOVE_HTML_TAGS) $(1) \ | wc -w) / $(WORDS_READ_PER_MINUTE) | bc) min endef all: ../index.html ../feed.xml $(PAGES) $(POSTS) # Index page (variable: @WEBROOT@) # Variable "est" para poner un estado o texto como "sin terminar" o "actualizado" ../index.html: $(POSTS) template/* Makefile $(info HTML $@) @ cat template/head.html > $@.tmp @ echo '