Permalink
Browse files

linux: Install more files

We're already installing most supporting data along with the
application itself, but we have been skipping additional
documentation (such as the license and release notes) and most
importantly the default configuration file.
  • Loading branch information...
andreabolognani authored and LordReg committed Sep 29, 2018
1 parent 30f82ac commit 69385ecedb9bea5d1e1a4294249849ea8a076bbf
Showing with 11 additions and 1 deletion.
  1. +11 −1 linux/Makefile
@@ -1,8 +1,10 @@
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin
LIBDIR ?= $(PREFIX)/lib
SYSCONFDIR ?= $(PREFIX)/etc
DATAROOTDIR ?= $(PREFIX)/share
MANDIR ?= $(DATAROOTDIR)/man
DOCDIR ?= $(DATAROOTDIR)/doc/spectrwm
XSESSIONSDIR ?= $(DATAROOTDIR)/xsessions
BUILDVERSION = $(shell sh $(CURDIR)/../buildver.sh)
@@ -49,14 +51,19 @@ clean:
install: all
install -m 755 -d $(DESTDIR)$(BINDIR)
install -m 755 -d $(DESTDIR)$(LIBDIR)
install -m 755 -d $(DESTDIR)$(SYSCONFDIR)
install -m 755 -d $(DESTDIR)$(MANDIR)/man1
install -m 755 -d $(DESTDIR)$(DOCDIR)
install -m 755 -d $(DESTDIR)$(XSESSIONSDIR)
install -m 755 spectrwm $(DESTDIR)$(BINDIR)
ln -sf spectrwm $(DESTDIR)$(BINDIR)/scrotwm
install -m 644 libswmhack.so.$(LIBVERSION) $(DESTDIR)$(LIBDIR)
ln -sf libswmhack.so.$(LIBVERSION) $(DESTDIR)$(LIBDIR)/libswmhack.so.$(LIBMAJORVERSION)
ln -sf libswmhack.so.$(LIBVERSION) $(DESTDIR)$(LIBDIR)/libswmhack.so
install -m 644 ../spectrwm.1 $(DESTDIR)$(MANDIR)/man1/spectrwm.1
install -m 644 ../spectrwm.conf $(DESTDIR)$(SYSCONFDIR)
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 spectrwm.desktop $(DESTDIR)$(XSESSIONSDIR)
uninstall:
@@ -65,7 +72,10 @@ uninstall:
rm -f $(DESTDIR)$(LIBDIR)/libswmhack.so.$(LIBVERSION)
rm -f $(DESTDIR)$(LIBDIR)/libswmhack.so.$(LIBMAJORVERSION)
rm -f $(DESTDIR)$(LIBDIR)/libswmhack.so
rm -f $(DESTDIR)$(SYSCONFDIR)/spectrwm.conf
rm -f $(DESTDIR)$(MANDIR)/man1/spectrwm.1
rm -f $(DESTDIR)$(DOCDIR)/CHANGELOG.md
rm -f $(DESTDIR)$(DOCDIR)/LICENSE.md
rm -f $(DESTDIR)$(XSESSIONSDIR)/spectrwm.desktop
.PHONY: all clean install uninstall

0 comments on commit 69385ec

Please sign in to comment.