Make install *.desktop files
authorPhilippe Brochard <pbrochard@common-lisp.net>
Thu, 29 Nov 2012 08:26:30 +0000 (29 09:26 +0100)
committerPhilippe Brochard <pbrochard@common-lisp.net>
Thu, 29 Nov 2012 08:26:30 +0000 (29 09:26 +0100)
Makefile

index 6abff76..58e778a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,11 +30,15 @@ install: clfswm
        mkdir -p $(DESTDIR)/lib/clfswm
        mkdir -p $(DESTDIR)/share/doc/clfswm
        mkdir -p $(DESTDIR)/man/man.1
+       mkdir -p $(DESTDIR)/share/applications
+       mkdir -p $(DESTDIR)/share/xsessions
        cp clfswm $(DESTDIR)/bin/
        cp -R contrib/* $(DESTDIR)/lib/clfswm/
        cp doc/* $(DESTDIR)/share/doc/clfswm/
        cp README COPYING AUTHORS $(DESTDIR)/share/doc/clfswm/
        cp clfswm.1 $(DESTDIR)/man/man.1/
+       cp clfswm.desktop $(DESTDIR)/share/applications/
+       cp clfswm-session.desktop $(DESTDIR)/share/xsessions/
 
 
 uninstall:
@@ -43,6 +47,8 @@ uninstall:
        rm -rf $(DESTDIR)/lib/clfswm/*
        rm -f $(DESTDIR)/share/doc/clfswm/*
        rm -f $(DESTDIR)/man/man.1/clfswm.1
+       rm -f $(DESTDIR)/share/applications/clfswm.desktop
+       rm -f $(DESTDIR)/share/xsessions/clfswm-session.desktop
        rmdir $(DESTDIR)/lib/clfswm
        rmdir $(DESTDIR)/share/doc/clfswm