From ffb830c3984a4c28338e0088ab1746d15502717c Mon Sep 17 00:00:00 2001 From: Mike Swanson Date: Mon, 20 Feb 2017 20:59:28 -0800 Subject: [PATCH] Makefile: Simply install rules. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don’t need to use install to create directories separately. The command can create them and install files at the same time. --- Makefile | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 8ca09acb..65aade18 100644 --- a/Makefile +++ b/Makefile @@ -132,18 +132,12 @@ target=$(DESTDIR)$(prefix) $(MAKE) -C dist icon-$* install-%: $(WADS)/%.wad %.6 %.png - install -d "$(target)$(bindir)" - install -m 755 dist/freedoom "$(target)$(bindir)/$*" - install -d "$(target)$(mandir)/man6" - install -m 644 dist/$*.6 "$(target)$(mandir)/man6" - install -d "$(target)$(waddir)" - install -m 644 $(WADS)/$*.wad "$(target)$(waddir)" - install -d "$(target)/share/applications" - install -m 644 dist/$*.desktop "$(target)/share/applications" - install -d "$(target)/share/appdata" - install -m 644 dist/$*.appdata.xml "$(target)/share/appdata" - install -d "$(target)/share/icons" - install -m 644 dist/$*.png "$(target)/share/icons/$*.png" + install -Dm 755 dist/freedoom "$(target)$(bindir)/$*" + install -Dm 644 dist/$*.6 -t "$(target)$(mandir)/man6" + install -Dm 644 $(WADS)/$*.wad -t "$(target)$(waddir)" + install -Dm 644 dist/$*.desktop -t "$(target)/share/applications" + install -Dm 644 dist/$*.appdata.xml -t "$(target)/share/appdata" + install -Dm 644 dist/$*.png -t "$(target)/share/icons" uninstall-%: rm "$(target)$(bindir)/$*"