aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-06-10 01:16:14 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-06-10 02:08:56 +0200
commit60a8ee7a80063eaf620eaa727af0f484fdb91bff (patch)
tree5791554d3691a6a8cd903123d77725d3b3dd7756 /tools
parent84f8c9436ffb84ca5d443b906f1ffb7be42a50e2 (diff)
downloadfiv-60a8ee7a80063eaf620eaa727af0f484fdb91bff.tar.gz
fiv-60a8ee7a80063eaf620eaa727af0f484fdb91bff.tar.xz
fiv-60a8ee7a80063eaf620eaa727af0f484fdb91bff.zip
Build tools with Meson as well
Diffstat (limited to 'tools')
-rw-r--r--tools/.gitignore5
-rw-r--r--tools/Makefile15
-rwxr-xr-xtools/clean-up-thumbnail-cache.sh2
3 files changed, 1 insertions, 21 deletions
diff --git a/tools/.gitignore b/tools/.gitignore
deleted file mode 100644
index 1389941..0000000
--- a/tools/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/pnginfo
-/jpeginfo
-/tiffinfo
-/webpinfo
-/bmffinfo
diff --git a/tools/Makefile b/tools/Makefile
deleted file mode 100644
index a95b2d9..0000000
--- a/tools/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-SHELL = /bin/sh
-# libjq 1.6 lacks a pkg-config file, and there is no release in sight.
-# libjq 1.6 is required.
-CFLAGS = -g -O2 -Wall -Wextra `pkg-config --cflags $(deps)`
-LDLIBS = -ljq `pkg-config --libs $(deps)`
-
-deps = libpng
-targets = pnginfo jpeginfo tiffinfo webpinfo bmffinfo
-
-all: $(targets)
-$(targets): info.h
-clean:
- rm -f $(targets)
-
-.PHONY: all clean
diff --git a/tools/clean-up-thumbnail-cache.sh b/tools/clean-up-thumbnail-cache.sh
index 94b68e5..fb67a6e 100755
--- a/tools/clean-up-thumbnail-cache.sh
+++ b/tools/clean-up-thumbnail-cache.sh
@@ -1,6 +1,6 @@
#!/bin/sh -e
# Remove thumbnails with URIs pointing to at this moment non-existing files.
-make pnginfo
+ninja pnginfo
pnginfo=$(pwd)/pnginfo cache_home=${XDG_CACHE_HOME:-$HOME/.cache}
for size in normal large x-large xx-large; do