update: add seperate command for config installation
This commit is contained in:
10
Makefile
10
Makefile
@ -42,10 +42,8 @@ locale/matt.pot: $(SRCS)
|
||||
xgettext -k_ -c $^ -o $@
|
||||
|
||||
install:
|
||||
install -d -m700 $(DESTDIR)/etc/matt
|
||||
install -d -m700 $(DESTDIR)/var/lib/matt
|
||||
install -d -m755 $(DESTDIR)/var/lib/matt
|
||||
install -m755 dist/matt $(DESTDIR)/$(PREFIX)/bin/matt
|
||||
install -m600 install/config.ini $(DESTDIR)/etc/matt/config.ini
|
||||
@for po in $(PO_DIRS) ; do \
|
||||
echo "installing locale: $$po/matt.mo" ; \
|
||||
mkdir -pv $(DESTDIR)/$(PREFIX)/share/$$po ; \
|
||||
@ -61,4 +59,8 @@ uninstall:
|
||||
format:
|
||||
clang-format -i -style=file src/*.c src/*.h
|
||||
|
||||
.PHONY: install uninstall format
|
||||
config:
|
||||
install -d -m755 $(DESTDIR)/etc/matt
|
||||
install -m644 install/config.ini $(DESTDIR)/etc/matt/config.ini
|
||||
|
||||
.PHONY: install uninstall format config
|
||||
|
Reference in New Issue
Block a user