Skip to content

Commit 9146b79

Browse files
committed
Update Makefile
1 parent 289e177 commit 9146b79

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,20 @@ todo: ensure_prerequisites
128128

129129
.PHONY: wrap
130130
wrap: ensure_prerequisites
131-
@echo "Verify wrapping"
131+
ifeq ($(fix),)
132+
@echo "Verify wrapping" \
132133
powrap --check --quiet *.po **/*.po
133134

135+
else
136+
ifeq ($(file),)
137+
@echo "Checking and fixing wrapping"
138+
powrap *.po **/*.po
139+
else
140+
@echo "Fixing wrapping in $(file)"
141+
powrap $(file)
142+
endif
143+
endif
144+
134145
SRCS = $(shell git diff --name-only $(BRANCH) | grep '.po$$')
135146
# foo/bar.po => $(POSPELL_TMP_DIR)/foo/bar.po.out
136147
DESTS = $(addprefix $(POSPELL_TMP_DIR)/,$(addsuffix .out,$(SRCS)))

0 commit comments

Comments
 (0)