From 436e7698191be13cb2b95d18faf94e558a922343 Mon Sep 17 00:00:00 2001 From: night0721 Date: Tue, 22 Oct 2024 01:28:32 +0100 Subject: [PATCH] Update Makefile --- Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Makefile b/Makefile index fc84193..fc21cd0 100644 --- a/Makefile +++ b/Makefile @@ -3,10 +3,8 @@ VERSION = 1.0 TARGET = ssm -MANPAGE = $(TARGET).1 PREFIX ?= /usr/local BINDIR = $(PREFIX)/bin -MANDIR = $(PREFIX)/share/man/man1 LDFLAGS != pkg-config --libs libnotify INCFLAGS != pkg-config --cflags libnotify @@ -19,22 +17,18 @@ $(TARGET): $(SRC) dist: mkdir -p $(TARGET)-$(VERSION) - cp -R README.md $(MANPAGE) $(TARGET) $(TARGET)-$(VERSION) + cp -R README.md $(TARGET) $(TARGET)-$(VERSION) tar -cf $(TARGET)-$(VERSION).tar $(TARGET)-$(VERSION) gzip $(TARGET)-$(VERSION).tar rm -rf $(TARGET)-$(VERSION) install: $(TARGET) mkdir -p $(DESTDIR)$(BINDIR) - mkdir -p $(DESTDIR)$(MANDIR) cp -p $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET) chmod 755 $(DESTDIR)$(BINDIR)/$(TARGET) - cp -p $(MANPAGE) $(DESTDIR)$(MANDIR)/$(MANPAGE) - chmod 644 $(DESTDIR)$(MANDIR)/$(MANPAGE) uninstall: rm $(DESTDIR)$(BINDIR)/$(TARGET) - rm $(DESTDIR)$(MANDIR)/$(MANPAGE) clean: rm $(TARGET)