mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 07:25:45 -04:00
Makefile: Simply install rules.
We don’t need to use install to create directories separately. The command can create them and install files at the same time.
This commit is contained in:
parent
04ccdb8f3c
commit
ffb830c398
1 changed files with 6 additions and 12 deletions
18
Makefile
18
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)/$*"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue