Groupement des documents générés.

This commit is contained in:
David Soulayrol 2024-02-04 16:05:30 +01:00
parent 0f901eaac1
commit 419533c8bc
3 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.auctex-auto/
build/
/documents/

View File

@ -7,6 +7,7 @@ DOCUMENTS := \
$(patsubst build/%.tex,build/%_notes.pdf,$(SOURCES))
all: $(DOCUMENTS)
mkdir -p ../documents && mv $^ ../documents
build:
mkdir build

10
generate-all.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
REAL_COMMAND=$(readlink -f "$0")
cd "$(dirname "$REAL_COMMAND")" || exit 1
find . -type f -name Makefile -exec dirname -z "{}" \; \
| sort -zu \
| sed -z 's/$/\n/' \
| while read -r d; do cd "$d"; make all; cd -; done