From 3367c6d9a93e83dfc84019f84cceb7e191b1ab6f Mon Sep 17 00:00:00 2001 From: xieby1 Date: Tue, 7 Nov 2023 12:30:39 +0800 Subject: [PATCH] move timeline/relplot.svg to images --- Makefile | 6 +++--- src/README.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 92eb066..a133ec9 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ define \n endef -ALL_GEN = src/timeline.svg src/relplot.svg \ +ALL_GEN = src/images/timeline.svg src/images/relplot.svg \ test/web/test.js mdbook all: ${ALL_GEN} @@ -12,7 +12,7 @@ mdbook: test/web/test.js: test/web/test.ts tsc --target es6 $< -CMDL_GEN = data/timeline.csv test/web/runXonY.json src/relplot.svg +CMDL_GEN = data/timeline.csv test/web/runXonY.json src/images/relplot.svg ${CMDL_GEN} &: src/lib.py src/data.py src/cmdl.py src/cmdl.py \ -c $(word 1,${CMDL_GEN}) \ @@ -23,7 +23,7 @@ ${CMDL_GEN} &: src/lib.py src/data.py src/cmdl.py # which will causing cannot resizing by css # add one to generated svg # https://stackoverflow.com/questions/644896/how-do-i-scale-a-stubborn-svg-embedded-with-the-object-tag -src/timeline.svg: data/timeline.csv data/gnuclad.conf +src/images/timeline.svg: data/timeline.csv data/gnuclad.conf gnuclad $< $@ $(word 2,$^) identify -format 'viewBox="0 0 %w %h"\n' $@ | sed -i '/height/r /dev/stdin' $@ diff --git a/src/README.md b/src/README.md index 9af5dcd..19ac0d4 100644 --- a/src/README.md +++ b/src/README.md @@ -4,8 +4,8 @@ ## Timeline - + ## Host-guest Relplot - +