diff options
author | Your Name <you@example.com> | 2021-01-07 11:23:35 -0500 |
---|---|---|
committer | Your Name <you@example.com> | 2021-01-07 11:23:35 -0500 |
commit | d706ee78abc9fed75004e5cd74e8d2bb2ceaa14f (patch) | |
tree | 7f801f44e27958a890c9ba3d406a0dfcdc67e33d /Makefile | |
parent | ce9b24d267fadb83e97f24e7fd5d9443741478b3 (diff) | |
download | biblereader-d706ee78abc9fed75004e5cd74e8d2bb2ceaa14f.tar.gz biblereader-d706ee78abc9fed75004e5cd74e8d2bb2ceaa14f.tar.bz2 biblereader-d706ee78abc9fed75004e5cd74e8d2bb2ceaa14f.zip |
Added make install option
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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` |