aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorLouis Burda <dev@sinitax.com>2026-02-14 15:07:41 +0100
committerLouis Burda <dev@sinitax.com>2026-02-14 15:07:41 +0100
commit8e5aec9e7aca713f5acaaf6bc8e07f94facebd8d (patch)
treec8c96b434f99e11e62cd156a5fe0733af3f604ee /Makefile
parenteb6225bc3546a27b897cc7f12c20de0c471eff25 (diff)
downloadwake-pulse-main.tar.gz
wake-pulse-main.zip
Add documentationHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c68262f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+PREFIX ?= /usr/local
+BINDIR = $(PREFIX)/bin
+MANDIR = $(PREFIX)/share/man/man1
+
+SCRIPT = wake-pulse
+MANPAGE = wake-pulse.1
+
+.PHONY: install uninstall clean
+
+install:
+ install -d $(DESTDIR)$(BINDIR)
+ install -m 755 $(SCRIPT) $(DESTDIR)$(BINDIR)/$(SCRIPT)
+ install -d $(DESTDIR)$(MANDIR)
+ install -m 644 $(MANPAGE) $(DESTDIR)$(MANDIR)/$(MANPAGE)
+ @echo "Installed $(SCRIPT) to $(BINDIR)"
+ @echo "Installed $(MANPAGE) to $(MANDIR)"
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDIR)/$(SCRIPT)
+ rm -f $(DESTDIR)$(MANDIR)/$(MANPAGE)
+ @echo "Uninstalled $(SCRIPT) and $(MANPAGE)"
+
+clean:
+ @echo "Nothing to clean"