fix: Makefile commands
This commit is contained in:
parent
5cdb857988
commit
5f93135457
16
Makefile
16
Makefile
@ -47,21 +47,21 @@ locale/libmp.pot: $(SRCS)
|
||||
xgettext -k_ -c $^ -o $@
|
||||
|
||||
install:
|
||||
install -m755 dist/libmp.so $(DESTDIR)$(PREFIX)/lib/libmp.so
|
||||
mkdir -pv $(DESTDIR)/usr/include/libmp
|
||||
install -m755 dist/libmp.so $(DESTDIR)/$(PREFIX)/lib/libmp.so
|
||||
mkdir -pv $(DESTDIR)/$(PREFIX)/include/libmp
|
||||
cp $(HDRS) $(DESTDIR)/usr/include/libmp
|
||||
@for po in $(PO_DIRS) ; do \
|
||||
echo "installing locale: $$po/libmp.mo" ; \
|
||||
mkdir -pv $(DESTDIR)/usr/share/$$po ; \
|
||||
cp $$po/libmp.mo $(DESTDIR)/usr/share/$$po ; \
|
||||
mkdir -pv $(DESTDIR)/$(PREFIX)/share/$$po ; \
|
||||
cp $$po/libmp.mo $(DESTDIR)/$(PREFIX)/share/$$po ; \
|
||||
done
|
||||
|
||||
uninstall:
|
||||
rm $(DESTDIR)$(PREFIX)/lib/libmp.so
|
||||
rm -r $(DESTDIR)/usr/include/libmp
|
||||
rm $(DESTDIR)/$(PREFIX)/lib/libmp.so
|
||||
rm -r $(DESTDIR)/$(PREFIX)/include/libmp
|
||||
|
||||
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:
|
||||
ifeq (,$(wildcard dist/libmp.so))
|
||||
@ -70,4 +70,4 @@ ifeq (,$(wildcard dist/libmp.so))
|
||||
endif
|
||||
$(MAKE) -C $@
|
||||
|
||||
.PHONY: test install uninstall format examples
|
||||
.PHONY: install uninstall format examples
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
Loading…
Reference in New Issue
Block a user