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