fix: remove extra mkdir commands from the Makefile

This commit is contained in:
ngn 2024-05-05 23:28:10 +03:00
parent 004f5fbdcf
commit 0caafc793b

View File

@ -32,27 +32,16 @@ locale/xcfg.pot: $(CSRCS)
xgettext -k_ -c $^ -o $@ xgettext -k_ -c $^ -o $@
install: install:
mkdir -pv $(DESTDIR)/etc/xcfg
mkdir -pv $(DESTDIR)/var/lib/xcfg
mkdir -pv $(DESTDIR)$(prefix)/bin mkdir -pv $(DESTDIR)$(prefix)/bin
install -v -m755 dist/xcfg $(DESTDIR)$(prefix)/bin/xcfg install -v -m755 dist/xcfg $(DESTDIR)$(prefix)/bin/xcfg
@for cmd in $(CMDS) ; do \
ln -sfv xcfg $(DESTDIR)$(prefix)/bin/$$cmd ; \
done
@for po in $(PO_DIRS) ; do \ @for po in $(PO_DIRS) ; do \
echo "installing locale: $$po/xcfg.mo" ; \ echo "installing locale: $$po/xcfg.mo" ; \
mkdir -pv $(DESTDIR)/usr/share/$$po ; \ mkdir -pv $(DESTDIR)/usr/share/$$po ; \
cp $$po/xcfg.mo $(DESTDIR)/usr/share/$$po ; \ cp $$po/xcfg.mo $(DESTDIR)/usr/share/$$po ; \
done done
defcfg:
cp -v install/cfg.default $(DESTDIR)/etc/xcfg/cfg
uninstall: uninstall:
rm -v $(DESTDIR)$(prefix)/bin/xcfg rm -v $(DESTDIR)$(prefix)/bin/xcfg
@for cmd in $(CMDS) ; do \
unlink $(DESTDIR)$(prefix)/bin/$$cmd ; \
done
clean: clean:
rm dist/xcfg rm dist/xcfg