blob: 3a6a316d6d03f2825a4dae74f01b8ccaefbe8465 [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 Armstrong6890fa92024-08-15 12:14:37 -04009all: ../lf
10 cd .. && $(MAKE)
Joey Armstronge4ef06a2024-03-22 11:43:54 -040011
Joey Armstrong9cbbf7f2024-08-14 17:05:18 -040012## -----------------------------------------------------------------------
13## -----------------------------------------------------------------------
Joey Armstronge4ef06a2024-03-22 11:43:54 -040014view :
15 pandoc README.md | lynx --stdin
16
Joey Armstrong9cbbf7f2024-08-14 17:05:18 -040017## -----------------------------------------------------------------------
18## -----------------------------------------------------------------------
19query-args := $(null)
Joey Armstrong6890fa92024-08-15 12:14:37 -040020ifdef DRYRUN
21 query-args += --dry-run
22endif
Joey Armstrong9cbbf7f2024-08-14 17:05:18 -040023query-args += --opencord
24query-args += --or
Joey Armstrong6890fa92024-08-15 12:14:37 -040025# query-args += --label-is-empty
26query-args += --label 'python3x'
27#query-args += --label 'python'
28#query-args += --label-excl 'foobar'
Joey Armstrong9cbbf7f2024-08-14 17:05:18 -040029query-args += --text-or 'python'
Joey Armstrong6890fa92024-08-15 12:14:37 -040030query-args += --resolved-is-empty
31# query-args += --unresolved
Joey Armstrong9cbbf7f2024-08-14 17:05:18 -040032
33query :
34 $(jira-search) $(query-args) 2>&1 | tee log
35
36## -----------------------------------------------------------------------
37## -----------------------------------------------------------------------
38help :
39 @printf 'Usage: make [options] [target] ...'
40 @printf ' %-33.33s %s\n' 'query' 'Convenience target for jira queries'
41 @printf ' %-33.33s %s\n' 'view' 'Render README.md for local viewing'
42
Joey Armstronge4ef06a2024-03-22 11:43:54 -040043# [EOF]