From 773bd04764f8407f90bf5bd10d62cd1712594892 Mon Sep 17 00:00:00 2001 From: Weiseguy Date: Fri, 22 Sep 2023 06:50:35 -0500 Subject: Add desktop entry file --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ccca079..09c2c53 100644 --- a/Makefile +++ b/Makefile @@ -52,8 +52,11 @@ install: dwl mkdir -p $(DESTDIR)$(MANDIR)/man1 cp -f dwl.1 $(DESTDIR)$(MANDIR)/man1 chmod 644 $(DESTDIR)$(MANDIR)/man1/dwl.1 + mkdir -p $(DESTDIR)$(PREFIX)/share/wayland-sessions + cp -f dwl.desktop $(DESTDIR)$(PREFIX)/share/wayland-sessions/dwl.desktop + chmod 644 $(DESTDIR)$(PREFIX)/share/wayland-sessions/dwl.desktop uninstall: - rm -f $(DESTDIR)$(PREFIX)/bin/dwl $(DESTDIR)$(MANDIR)/man1/dwl.1 + rm -f $(DESTDIR)$(PREFIX)/bin/dwl $(DESTDIR)$(MANDIR)/man1/dwl.1 $(DESTDIR)$(PREFIX)/share/wayland-sessions/dwl.desktop .SUFFIXES: .c .o .c.o: -- cgit v1.2.3 From 5baf195523934519d7659ae34ad287ca60a5654c Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Sun, 24 Sep 2023 11:24:39 -0600 Subject: allow specify DATADIR (to install desktop file) --- Makefile | 8 ++++---- config.mk | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 09c2c53..ff6e518 100644 --- a/Makefile +++ b/Makefile @@ -52,11 +52,11 @@ install: dwl mkdir -p $(DESTDIR)$(MANDIR)/man1 cp -f dwl.1 $(DESTDIR)$(MANDIR)/man1 chmod 644 $(DESTDIR)$(MANDIR)/man1/dwl.1 - mkdir -p $(DESTDIR)$(PREFIX)/share/wayland-sessions - cp -f dwl.desktop $(DESTDIR)$(PREFIX)/share/wayland-sessions/dwl.desktop - chmod 644 $(DESTDIR)$(PREFIX)/share/wayland-sessions/dwl.desktop + mkdir -p $(DESTDIR)$(DATADIR)/wayland-sessions + cp -f dwl.desktop $(DESTDIR)$(DATADIR)/wayland-sessions/dwl.desktop + chmod 644 $(DESTDIR)$(DATADIR)/wayland-sessions/dwl.desktop uninstall: - rm -f $(DESTDIR)$(PREFIX)/bin/dwl $(DESTDIR)$(MANDIR)/man1/dwl.1 $(DESTDIR)$(PREFIX)/share/wayland-sessions/dwl.desktop + rm -f $(DESTDIR)$(PREFIX)/bin/dwl $(DESTDIR)$(MANDIR)/man1/dwl.1 $(DESTDIR)$(DATADIR)/wayland-sessions/dwl.desktop .SUFFIXES: .c .o .c.o: diff --git a/config.mk b/config.mk index f50156f..4bc9b9d 100644 --- a/config.mk +++ b/config.mk @@ -6,6 +6,7 @@ PKG_CONFIG = pkg-config # paths PREFIX = /usr/local MANDIR = $(PREFIX)/share/man +DATADIR = $(PREFIX)/share XWAYLAND = XLIBS = -- cgit v1.2.3