logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git

build.ninja (1787B)


  1. # SPDX-FileCopyrightText: 2019-2023 Badwolf Authors <https://hacktivis.me/projects/badwolf>
  2. # SPDX-License-Identifier: BSD-3-Clause
  3. # Written by hand, config.ninja is the generated one
  4. rule po2mo
  5. command = mkdir -p "$$(dirname $out)" && msgfmt -o $out $in
  6. rule translate_manpage
  7. command = po4a-translate --format man -M utf-8 --master badwolf.1 --po $in --localized $out
  8. rule scour
  9. command = mkdir -p "$$(dirname $out)" && scour --no-line-breaks --enable-id-stripping --remove-metadata $in $out
  10. rule gen_icon
  11. command = mkdir -p "$$(dirname $out)" && inkscape -w $width -h $height $in -o $out
  12. rule run_tests
  13. command = for test in $in; do ./$$test || exit 1; done
  14. rule install
  15. command = sh -e ./install.sh
  16. include config.ninja
  17. build icons/hicolor/scalable/apps/badwolf.svg: scour badwolf.svg
  18. build uri_test: cc_exe uri_test.c uri.o
  19. build fmt_test: cc_exe fmt_test.c fmt.o
  20. build bookmarks_test: cc_exe bookmarks_test.c bookmarks.o
  21. build test: run_tests uri_test fmt_test bookmarks_test
  22. rule list_authors
  23. command = git log --use-mailmap --format='format:%aN <%aE>' --date='format:%Y' | sort | uniq >$out
  24. build AUTHORS: list_authors | .git
  25. rule format
  26. command = clang-format -style=file -assume-filename=.clang-format -i *.c *.h
  27. build format: format
  28. rule mandoc
  29. command = $MANDOC -Tlint -Wunsupp,error,warning ./badwolf.1 && $MANDOC -Tlint -Wunsupp,error ./badwolf.*.1
  30. build lint_mandoc: mandoc
  31. rule shellcheck
  32. command = $SHELLCHECK ./configure
  33. build lint_shellcheck: shellcheck | ./configure
  34. rule flawfinder
  35. command = $FLAWFINDER .
  36. build lint_flawfinder: flawfinder
  37. rule reuse
  38. command = $REUSE lint
  39. build lint_reuse: reuse
  40. rule true
  41. command = true
  42. build lint: true | lint_mandoc lint_shellcheck lint_flawfinder lint_reuse
  43. build all: phony badwolf