mirror of
https://github.com/vale981/spectrwm
synced 2025-03-04 17:31:40 -05:00
linux: Install examples
Along with the various BSDs, basically all Linux distros that have a spectrwm package include these example files in it, so let's codify this common practice in the Makefile.
This commit is contained in:
parent
24e934f725
commit
f0584c7fdd
1 changed files with 9 additions and 0 deletions
|
@ -54,6 +54,7 @@ install: all
|
|||
install -m 755 -d $(DESTDIR)$(SYSCONFDIR)
|
||||
install -m 755 -d $(DESTDIR)$(MANDIR)/man1
|
||||
install -m 755 -d $(DESTDIR)$(DOCDIR)
|
||||
install -m 755 -d $(DESTDIR)$(DOCDIR)/examples
|
||||
install -m 755 -d $(DESTDIR)$(XSESSIONSDIR)
|
||||
install -m 755 spectrwm $(DESTDIR)$(BINDIR)
|
||||
ln -sf spectrwm $(DESTDIR)$(BINDIR)/scrotwm
|
||||
|
@ -64,6 +65,10 @@ install: all
|
|||
install -m 644 ../spectrwm.1 $(DESTDIR)$(MANDIR)/man1
|
||||
install -m 644 ../CHANGELOG.md $(DESTDIR)$(DOCDIR)
|
||||
install -m 644 ../LICENSE.md $(DESTDIR)$(DOCDIR)
|
||||
install -m 644 baraction.sh $(DESTDIR)$(DOCDIR)/examples
|
||||
install -m 644 ../initscreen.sh $(DESTDIR)$(DOCDIR)/examples
|
||||
install -m 644 ../screenshot.sh $(DESTDIR)$(DOCDIR)/examples
|
||||
install -m 644 ../spectrwm_*.conf $(DESTDIR)$(DOCDIR)/examples
|
||||
install -m 644 spectrwm.desktop $(DESTDIR)$(XSESSIONSDIR)
|
||||
|
||||
uninstall:
|
||||
|
@ -76,6 +81,10 @@ uninstall:
|
|||
rm -f $(DESTDIR)$(MANDIR)/man1/spectrwm.1
|
||||
rm -f $(DESTDIR)$(DOCDIR)/CHANGELOG.md
|
||||
rm -f $(DESTDIR)$(DOCDIR)/LICENSE.md
|
||||
rm -f $(DESTDIR)$(DOCDIR)/examples/baraction.sh
|
||||
rm -f $(DESTDIR)$(DOCDIR)/examples/initscreen.sh
|
||||
rm -f $(DESTDIR)$(DOCDIR)/examples/screenshot.sh
|
||||
rm -f $(DESTDIR)$(DOCDIR)/examples/spectrwm_*.conf
|
||||
rm -f $(DESTDIR)$(XSESSIONSDIR)/spectrwm.desktop
|
||||
|
||||
.PHONY: all clean install uninstall
|
||||
|
|
Loading…
Add table
Reference in a new issue