Joey Armstrong | e4ef06a | 2024-03-22 11:43:54 -0400 | [diff] [blame] | 1 | # -*- makefile -*- |
Joey Armstrong | 9cbbf7f | 2024-08-14 17:05:18 -0400 | [diff] [blame^] | 2 | ## ----------------------------------------------------------------------- |
| 3 | ## ----------------------------------------------------------------------- |
Joey Armstrong | e4ef06a | 2024-03-22 11:43:54 -0400 | [diff] [blame] | 4 | |
Joey Armstrong | 9cbbf7f | 2024-08-14 17:05:18 -0400 | [diff] [blame^] | 5 | jira-search = bin/jira-search.sh |
| 6 | |
| 7 | ## ----------------------------------------------------------------------- |
| 8 | ## ----------------------------------------------------------------------- |
Joey Armstrong | e4ef06a | 2024-03-22 11:43:54 -0400 | [diff] [blame] | 9 | all: |
| 10 | |
Joey Armstrong | 9cbbf7f | 2024-08-14 17:05:18 -0400 | [diff] [blame^] | 11 | ## ----------------------------------------------------------------------- |
| 12 | ## ----------------------------------------------------------------------- |
Joey Armstrong | e4ef06a | 2024-03-22 11:43:54 -0400 | [diff] [blame] | 13 | view : |
| 14 | pandoc README.md | lynx --stdin |
| 15 | |
Joey Armstrong | 9cbbf7f | 2024-08-14 17:05:18 -0400 | [diff] [blame^] | 16 | ## ----------------------------------------------------------------------- |
| 17 | ## ----------------------------------------------------------------------- |
| 18 | query-args := $(null) |
| 19 | # query-args += --dry-run |
| 20 | query-args += --opencord |
| 21 | query-args += --or |
| 22 | query-args += --label-is-empty |
| 23 | query-args += --label 'python' |
| 24 | query-args += --label-excl 'foobar' |
| 25 | query-args += --text-or 'python' |
| 26 | |
| 27 | query : |
| 28 | $(jira-search) $(query-args) 2>&1 | tee log |
| 29 | |
| 30 | ## ----------------------------------------------------------------------- |
| 31 | ## ----------------------------------------------------------------------- |
| 32 | help : |
| 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 Armstrong | e4ef06a | 2024-03-22 11:43:54 -0400 | [diff] [blame] | 37 | # [EOF] |