blob: ab4c3ebda4b41429eb3e91f5489a4a2857edf674 [file] [log] [blame]
Joey Armstronge4ef06a2024-03-22 11:43:54 -04001# -*- makefile -*-
Joey Armstrong9cbbf7f2024-08-14 17:05:18 -04002## -----------------------------------------------------------------------
3## -----------------------------------------------------------------------
Joey Armstronge4ef06a2024-03-22 11:43:54 -04004
Joey Armstrong9cbbf7f2024-08-14 17:05:18 -04005jira-search = bin/jira-search.sh
6
7## -----------------------------------------------------------------------
8## -----------------------------------------------------------------------
Joey Armstronge4ef06a2024-03-22 11:43:54 -04009all:
10
Joey Armstrong9cbbf7f2024-08-14 17:05:18 -040011## -----------------------------------------------------------------------
12## -----------------------------------------------------------------------
Joey Armstronge4ef06a2024-03-22 11:43:54 -040013view :
14 pandoc README.md | lynx --stdin
15
Joey Armstrong9cbbf7f2024-08-14 17:05:18 -040016## -----------------------------------------------------------------------
17## -----------------------------------------------------------------------
18query-args := $(null)
19# query-args += --dry-run
20query-args += --opencord
21query-args += --or
22query-args += --label-is-empty
23query-args += --label 'python'
24query-args += --label-excl 'foobar'
25query-args += --text-or 'python'
26
27query :
28 $(jira-search) $(query-args) 2>&1 | tee log
29
30## -----------------------------------------------------------------------
31## -----------------------------------------------------------------------
32help :
33 @printf 'Usage: make [options] [target] ...'
34 @printf ' %-33.33s %s\n' 'query' 'Convenience target for jira queries'
35 @printf ' %-33.33s %s\n' 'view' 'Render README.md for local viewing'
36
Joey Armstronge4ef06a2024-03-22 11:43:54 -040037# [EOF]