From d706ee78abc9fed75004e5cd74e8d2bb2ceaa14f Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 7 Jan 2021 11:23:35 -0500 Subject: Added make install option --- Makefile | 11 +++++++++++ biblereader-symbolic.svg | 8 ++++++++ biblereader.desktop | 8 ++++++++ 3 files changed, 27 insertions(+) create mode 100644 biblereader-symbolic.svg create mode 100644 biblereader.desktop diff --git a/Makefile b/Makefile index 7778cce..0a9a302 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,20 @@ LDFLAGS=-pthread -lbible SOURCES=header.cc main.cc mods.cc readerview.cc sword.cc OBJECTS=$(SOURCES:.cc=.o) EXECUTABLE=biblereader +ifeq ($(PREFIX),) + PREFIX := /usr +endif all: $(SOURCES) $(EXECUTABLE) +install: $(EXECUTABLE) + install -d $(DESTDIR)$(PREFIX)/bin/ + install -m 755 $(EXECUTABLE) $(DESTDIR)$(PREFIX)/bin/ + install -d $(DESTDIR)$(PREFIX)/share/applications/ + install -m 644 biblereader.desktop $(DESTDIR)$(PREFIX)/share/applications/ + install -d $(DESTDIR)$(PREFIX)/share/icons/hicolor/symbolic/apps/ + install -m 644 biblereader-symbolic.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/symbolic/apps/ + $(EXECUTABLE): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTS) -o $@ `pkg-config $(LIBS) --libs` diff --git a/biblereader-symbolic.svg b/biblereader-symbolic.svg new file mode 100644 index 0000000..7854114 --- /dev/null +++ b/biblereader-symbolic.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/biblereader.desktop b/biblereader.desktop new file mode 100644 index 0000000..3738ae6 --- /dev/null +++ b/biblereader.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Biblereader +Comment=Read the Word +Exec=biblereader +Icon=biblereader +Terminal=false +Type=Application +Categories=Education -- cgit v1.2.3