Update Makefile
This commit is contained in:
parent
c0335a0aca
commit
436e769819
1 changed files with 1 additions and 7 deletions
8
Makefile
8
Makefile
|
@ -3,10 +3,8 @@
|
||||||
|
|
||||||
VERSION = 1.0
|
VERSION = 1.0
|
||||||
TARGET = ssm
|
TARGET = ssm
|
||||||
MANPAGE = $(TARGET).1
|
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
BINDIR = $(PREFIX)/bin
|
BINDIR = $(PREFIX)/bin
|
||||||
MANDIR = $(PREFIX)/share/man/man1
|
|
||||||
|
|
||||||
LDFLAGS != pkg-config --libs libnotify
|
LDFLAGS != pkg-config --libs libnotify
|
||||||
INCFLAGS != pkg-config --cflags libnotify
|
INCFLAGS != pkg-config --cflags libnotify
|
||||||
|
@ -19,22 +17,18 @@ $(TARGET): $(SRC)
|
||||||
|
|
||||||
dist:
|
dist:
|
||||||
mkdir -p $(TARGET)-$(VERSION)
|
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)
|
tar -cf $(TARGET)-$(VERSION).tar $(TARGET)-$(VERSION)
|
||||||
gzip $(TARGET)-$(VERSION).tar
|
gzip $(TARGET)-$(VERSION).tar
|
||||||
rm -rf $(TARGET)-$(VERSION)
|
rm -rf $(TARGET)-$(VERSION)
|
||||||
|
|
||||||
install: $(TARGET)
|
install: $(TARGET)
|
||||||
mkdir -p $(DESTDIR)$(BINDIR)
|
mkdir -p $(DESTDIR)$(BINDIR)
|
||||||
mkdir -p $(DESTDIR)$(MANDIR)
|
|
||||||
cp -p $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
|
cp -p $(TARGET) $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||||
chmod 755 $(DESTDIR)$(BINDIR)/$(TARGET)
|
chmod 755 $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||||
cp -p $(MANPAGE) $(DESTDIR)$(MANDIR)/$(MANPAGE)
|
|
||||||
chmod 644 $(DESTDIR)$(MANDIR)/$(MANPAGE)
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm $(DESTDIR)$(BINDIR)/$(TARGET)
|
rm $(DESTDIR)$(BINDIR)/$(TARGET)
|
||||||
rm $(DESTDIR)$(MANDIR)/$(MANPAGE)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm $(TARGET)
|
rm $(TARGET)
|
||||||
|
|
Loading…
Reference in a new issue