fix: Makefile commands

This commit is contained in:
ngn 2024-07-11 13:49:57 +03:00
parent 5cdb857988
commit 5f93135457
2 changed files with 9 additions and 9 deletions

View File

@ -47,21 +47,21 @@ locale/libmp.pot: $(SRCS)
xgettext -k_ -c $^ -o $@ xgettext -k_ -c $^ -o $@
install: install:
install -m755 dist/libmp.so $(DESTDIR)$(PREFIX)/lib/libmp.so install -m755 dist/libmp.so $(DESTDIR)/$(PREFIX)/lib/libmp.so
mkdir -pv $(DESTDIR)/usr/include/libmp mkdir -pv $(DESTDIR)/$(PREFIX)/include/libmp
cp $(HDRS) $(DESTDIR)/usr/include/libmp cp $(HDRS) $(DESTDIR)/usr/include/libmp
@for po in $(PO_DIRS) ; do \ @for po in $(PO_DIRS) ; do \
echo "installing locale: $$po/libmp.mo" ; \ echo "installing locale: $$po/libmp.mo" ; \
mkdir -pv $(DESTDIR)/usr/share/$$po ; \ mkdir -pv $(DESTDIR)/$(PREFIX)/share/$$po ; \
cp $$po/libmp.mo $(DESTDIR)/usr/share/$$po ; \ cp $$po/libmp.mo $(DESTDIR)/$(PREFIX)/share/$$po ; \
done done
uninstall: uninstall:
rm $(DESTDIR)$(PREFIX)/lib/libmp.so rm $(DESTDIR)/$(PREFIX)/lib/libmp.so
rm -r $(DESTDIR)/usr/include/libmp rm -r $(DESTDIR)/$(PREFIX)/include/libmp
format: format:
clang-format -i -style=file src/*.c src/*.c include/*.h examples/*/*.c clang-format -i -style=file src/*.c include/*.h examples/*/*.c
examples: examples:
ifeq (,$(wildcard dist/libmp.so)) ifeq (,$(wildcard dist/libmp.so))
@ -70,4 +70,4 @@ ifeq (,$(wildcard dist/libmp.so))
endif endif
$(MAKE) -C $@ $(MAKE) -C $@
.PHONY: test install uninstall format examples .PHONY: install uninstall format examples

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-11 07:49+0300\n" "POT-Creation-Date: 2024-07-11 13:49+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"