summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorW. Kosior <koszko@koszko.org>2024-12-18 07:35:54 +0100
committerW. Kosior <koszko@koszko.org>2024-12-18 07:35:54 +0100
commit6e2b211d2cd4710ec793d8c56d0d20f4c2407a2e (patch)
tree9938f40a4905d01966c80ba606f842df9ab62d3d
parent8e0d7716dd73a2e3f042c3c8d61d04dfec5adef3 (diff)
downloadAGH-threat-intel-course-6e2b211d2cd4710ec793d8c56d0d20f4c2407a2e.tar.gz
AGH-threat-intel-course-6e2b211d2cd4710ec793d8c56d0d20f4c2407a2e.zip
Use `DEFAULT_TARGETS' Makefile variable.
-rw-r--r--Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 48661d3..bdf93e7 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,12 @@ PYTHON=python3
PANDOC=pandoc
LATEXMK=latexmk
-all: tables.pdf techniques_table_doc.pdf profiles_with_scraped_info.yaml
+DEFAULT_TARGETS = \
+ profiles_with_scraped_info.yaml \
+ tables.pdf \
+ techniques_table_doc.pdf
+
+all: $(DEFAULT_TARGETS)
.PHONY: all
.SUFFIXES: .pdf .md
@@ -37,17 +42,15 @@ techniques_table_doc.pdf: techniques_table_doc.tex techniques_table.tex
$(LATEXMK) -pdf $<
th-proj-archive.tar.gz: Makefile profiles.yaml scrape_groups_info.py \
- profiles_with_scraped_info.yaml tables.md tables.pdf \
- techniques_table_doc.pdf techniques_table.py \
- threats_by_sector_table.py
+ tables.md techniques_table.py threats_by_sector_table.py \
+ $(DEFAULT_TARGETS)
tar --transform='s|^|th-proj-archive/|' \
--mtime=1970-01-01T00:00:00-00:00 --group=0 --owner=0 \
-czf $@ $^
clean:
- rm -rf profiles_with_scraped_info.yaml tables.pdf tables.md \
- techniques_table_doc.pdf techniques_table.tex \
- th-proj-archive.tar.gz
+ rm -rf tables.md techniques_table.tex th-proj-archive.tar.gz \
+ $(DEFAULT_TARGETS)
$(LATEXMK) -C
.PHONY: clean