Skip to content

Commit

Permalink
Update for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jrie committed Apr 18, 2018
1 parent c390271 commit 8e2f25d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,21 @@ LINKER_FLAGS = -lzip -lsqlite3 `pkg-config --libs gtk+-3.0`
#OBJ_NAME specifies the name of our exectuable
OBJ_NAME = kissebook

INSTALL_PATH = /usr/share/kissebook

#This is the target that compiles our executable
all : $(OBJS)
$(CC) $(OBJS) $(COMPILER_FLAGS) $(LINKER_FLAGS) -o $(OBJ_NAME)

install : all
mkdir $(INSTALL_PATH)
cp -r translations $(INSTALL_PATH)
cp kissebook.png $(INSTALL_PATH)
cp kissebook $(INSTALL_PATH)
cp kissebook.desktop /usr/share/applications/

uninstall : $(INSTALL_PATH)
rm -R $(INSTALL_PATH)

#gcc kisslib-jessie.c kiss-front-jessie.c -Wall -std=c99 -O3 -g `pkg-config --cflags gtk+-3.0` -lzip -lsqlite3 `pkg-config --libs gtk+-3.0` -o kisslib
clean : $(OBJ_NAME)
rm kissebook
9 changes: 9 additions & 0 deletions kissebook.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Version=0.8.4
Type=Application
Terminal=False
Exec=/usr/share/kissebook/kissebook
Name=KissEbook
Comment=KISS Ebook - A kiss principle ebook quick launcher
Icon=/usr/share/kissebook/kissebook.png
Categories=Application;Util;Viewer;GTK
Binary file added kissebook.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8e2f25d

Please sign in to comment.