This commit is contained in:
Thomas Baruchel 2022-11-05 13:08:59 +01:00
parent 8172322780
commit ebb037b8e4

26
Makefile Normal file
View File

@ -0,0 +1,26 @@
# Generate Atom feeds from the RsT source files
# Directory containing source (Markdown) files
source := ./src
# Directory containing Atom feeds
output := ./atom
# All RsT files in src/ are considered sources
sources := $(wildcard $(source)/*.rst)
# Convert the list of source files (RsT files in directory src/)
# into a list of output files (Atom feeds in directory atom/).
objects := $(patsubst %.rst,%.xml,$(subst $(source),$(output),$(sources)))
all: $(objects)
# Recipe for converting a Markdown file into PDF using Pandoc
$(output)/%.xml: $(source)/%.rst
python3 rst2atom.py $< > $@
# git add $@
.PHONY : clean
clean:
rm -f $(output)/*.xml