commit: 0ee5e5ce7e20d786add94bcce4f60dd4140f5670
parent 4ca73a1093ec008b5dc7c2c1161c81833f75bcc7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Mon, 17 Jul 2023 09:50:49 +0200
configure: Add icons, trans_man, bundled, fullclean targets
Diffstat:
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/configure b/configure
@@ -340,24 +340,35 @@ done >>config.ninja
for man in ${TRANS_MAN}; do
echo "build po/${man}_man.po: xgettext_man badwolf.1"
echo "build badwolf.${man}.1: translate_manpage po/${man}_man.po"
- all="${all} badwolf.${man}.1"
+ bundled="${bundled} badwolf.${man}.1"
+ trans_man="${trans_man} badwolf.${man}.1"
done >>config.ninja
for i in 24 32 48 64 128 256; do
echo "build icons/hicolor/${i}x${i}/apps/badwolf.png: gen_icon icons/hicolor/scalable/apps/badwolf.svg
width = $i
height = $i"
- # Not default, only there to ease regeneration of icons
+ bundled="${bundled} icons/hicolor/${i}x${i}"
+ icons_list="${icons_list} icons/hicolor/${i}x${i}/apps/badwolf.png"
done >>config.ninja
cat >>config.ninja <<EOF
+build icons: phony | ${icons_list}
+build trans_man: phony | ${trans_man}
+build bundled: phony | icons trans_man
+
default ${all}
-rule clean
- command = rm ${all}
+rule remove
+ command = rm -fr \${in} \${foo}
build install: install | ${all}
-build clean: clean
+build clean: remove
+ foo = ${all} ${OBJS} ${OBJS_test}
+build distclean: remove | clean
+ foo = config.ninja configure.h install.sh
+build fullclean: remove | distclean
+ foo = ${bundled}
EOF
is_ok