Makefile: make tools build and install optional

This commit is contained in:
Silvan Calarco 2022-01-08 15:25:19 +01:00
parent ac5a44bfda
commit 943521f9d9

View File

@ -37,7 +37,7 @@ pck_catalogs := $(wildcard po/*.po)
.SUFFIXES: .po .mo .SUFFIXES: .po .mo
.po.mo:; msgfmt $< -o $@ .po.mo:; msgfmt $< -o $@
all: tools all:
tools: tools:
make -C src make -C src
@ -50,7 +50,6 @@ install-dirs:
$(INSTALL_DIR) $(DESTDIR)$(localstatedir)/run $(INSTALL_DIR) $(DESTDIR)$(localstatedir)/run
$(INSTALL_DIR) $(DESTDIR)$(localstatedir)/log $(INSTALL_DIR) $(DESTDIR)$(localstatedir)/log
$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/modules.d/ $(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/modules.d/
$(INSTALL_DIR) $(DESTDIR)/var/spool/gdm
install-files: install-files:
touch $(DESTDIR)$(localstatedir)/log/{btmp,lastlog,wtmp} touch $(DESTDIR)$(localstatedir)/log/{btmp,lastlog,wtmp}
@ -62,7 +61,7 @@ install-files:
done done
ln -sf rc.d/init.d/ $(DESTDIR)$(sysconfdir)/init.d ln -sf rc.d/init.d/ $(DESTDIR)$(sysconfdir)/init.d
install: install-dirs install-tools install-files install: install-dirs install-files
dist: clean dist: clean
@git log > ChangeLog.git @git log > ChangeLog.git