Skip to content

Commit

Permalink
Merge pull request #74 from tphakala/clip-start-time-fix
Browse files Browse the repository at this point in the history
refactor(labels): update makefile to zip labels.zip during build and …
  • Loading branch information
tphakala authored Mar 22, 2024
2 parents 79ebb35 + 1a9900f commit f9be7f3
Show file tree
Hide file tree
Showing 27 changed files with 169,171 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ LDFLAGS := -ldflags "-s -w"
# Detect host architecture
UNAME_M := $(shell uname -m)

LABELS_FILES := $(wildcard internal/birdnet/labels/*)
LABELS_ZIP := internal/birdnet/labels.zip

# Default action
all: $(LABELS_ZIP) build

# labels.zip depends on all files in the labels directory
$(LABELS_ZIP): $(LABELS_FILES)
@echo "Creating or updating labels.zip from contents of internal/birdnet/labels/*"
@cd internal/birdnet/labels && zip -j $(CURDIR)/$(LABELS_ZIP) *

# Default build for local development
build:
$(CGO_FLAGS) go build $(LDFLAGS) -o $(BINARY_DIR)/$(BINARY_NAME)
Expand Down
6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_af.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_ar.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_cs.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_da.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_de.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_en.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_es.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_fi.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_fr.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_hu.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_it.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_ja.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_ko.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_nl.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_no.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_pl.txt

Large diffs are not rendered by default.

6,110 changes: 6,110 additions & 0 deletions internal/birdnet/labels/labels_pt.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_ro.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_ru.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_sk.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_sl.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_sv.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_th.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_tr.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_uk.txt

Large diffs are not rendered by default.

6,522 changes: 6,522 additions & 0 deletions internal/birdnet/labels/labels_zh.txt

Large diffs are not rendered by default.

0 comments on commit f9be7f3

Please sign in to comment.