summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoruint23 <[email protected]>2025-05-16 20:31:23 +0100
committerGitHub <[email protected]>2025-05-16 20:31:23 +0100
commita3408a3e811517ba4333766189eb43aeb7915ecc (patch)
tree6a392dae4dda1c833df853b842163d6b2aa38b81 /Makefile
parent96a87bfadd7bee36c9a4dd7b1d0a3c9ce49714df (diff)
parentee7e9aba281337f45f499eeef9b39c5e18b9f2d0 (diff)
Merge pull request #11 from bbergeron0/feature-desktop-entry
Add XSession desktop entry for sxwm
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7c69201..ad457e6 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,8 @@ OBJ_DIR := build
SRC := $(wildcard $(SRC_DIR)/*.c)
OBJ := $(patsubst $(SRC_DIR)/%.c,$(OBJ_DIR)/%.o,$(SRC))
+XSESSIONS := $(DESTDIR)$(PREFIX)/share/xsessions
+
all: $(BIN)
$(BIN): $(OBJ)
@@ -27,11 +29,16 @@ install: all
@echo "Installing $(BIN) to $(DESTDIR)$(PREFIX)/bin..."
@mkdir -p $(DESTDIR)$(PREFIX)/bin
@install -m 755 $(BIN) $(DESTDIR)$(PREFIX)/bin/$(BIN)
+ @echo "Installing sxwm.desktop to $(XSESSIONS)..."
+ @mkdir -p $(XSESSIONS)
+ @install -m 644 sxwm.desktop $(XSESSIONS)/sxwm.desktop
@echo "Installation complete."
uninstall:
@echo "Uninstalling $(BIN) from $(DESTDIR)$(PREFIX)/bin..."
@rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
+ @echo "Uninstalling sxwm.desktop from $(XSESSIONS)..."
+ @rm -f $(XSESSIONS)/sxwm.desktop
@echo "Uninstallation complete."
.PHONY: all clean install uninstall