Commit b54f43e4 authored by Bastien Nocera's avatar Bastien Nocera

Move some of the generation to Makefile

And generate the supported-devices.html page
parent 404774a2
Pipeline #774 passed with stage
in 3 minutes and 20 seconds
......@@ -15,20 +15,15 @@ pages:
before_script:
- dnf update -y --nogpgcheck && dnf install -y --nogpgcheck $DEPENDENCIES $DEPENDENCIES_LIBFPRINT $DEPENDENCIES_FPRINTD
script:
- mkdir .public
- cp *.md simple.css .public/
- cd .public/
- for i in *.md ; do discount-mkd2html -css simple.css $i ; done
- rm -f *.md
- cp -r ../images/ .
- cd ..
- mv .public/ public/
- mkdir public/
# Stable libfprint docs, copied from package, we can't copy from the
# installed package, as the CI setup doesn't install docs
- dnf download libfprint-devel.x86_64
- rpm2cpio ./libfprint-devel-*.rpm | cpio -id
- mv ./usr/share/doc/libfprint-devel/html/ public/libfprint-stable/
- rm -rf ./libfprint-devel-*.rpm ./usr/
# Unstable libfprint docs
- git clone https://gitlab.freedesktop.org/libfprint/libfprint.git
- cd libfprint
......@@ -37,6 +32,11 @@ pages:
- ninja -C _build install
- cd ..
- mv /usr/share/gtk-doc/html/libfprint/ public/libfprint-dev/
# This uses output from the unstable libfprint above
- make install
- make clean
# fprintd docs
- git clone https://gitlab.freedesktop.org/libfprint/fprintd.git
- cd fprintd
......
all: index.html project-history.html security-notes.html us-export-control.html
.NOTPARALLEL:
HTML=index.html project-history.html security-notes.html us-export-control.html supported-devices.html
all: ${HTML}
supported-devices.md:
libfprint/_build/libfprint/fprint-list-supported-devices > $@
%.html : %.md
discount-mkd2html -css simple.css $<
install: ${HTML}
cp -r images/ ${HTML} simple.css public/
clean:
rm -f ${HTML}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment