From 7f6942ea7d48d253abc2985cf7fe2d6d7bc66937 Mon Sep 17 00:00:00 2001 From: ngn Date: Sat, 13 Jul 2024 16:58:16 +0300 Subject: [PATCH] fix: remove translations for uninstall command --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ffc2425..42d142a 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ dist/libmp.so: $(OBJS) dist/%.o: src/%.c $(CC) -c -Wall -fPIC -o $@ $^ $(LIBS) $(CFLAGS) -DLM_VERSION=\"${VERSION}\" -DLM_DEBUG=${DEBUG} -locale/%.mo: locale/%.po +locale/%.mo: locale/%.po msgfmt $^ -o $@ locale/%.po: locale/libmp.pot @@ -59,6 +59,9 @@ install: uninstall: rm $(DESTDIR)/$(PREFIX)/lib/libmp.so rm -r $(DESTDIR)/$(PREFIX)/include/libmp + @for po in $(PO_DIRS) ; do \ + rm $(DESTDIR)/$(PREFIX)/share/$$po/libmp.mo ; \ + done format: clang-format -i -style=file src/*.c include/*.h examples/*/*.c