-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: fichiers d’installations pour Linux
- Loading branch information
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# If PREFIX isn't provided, we check for $(DESTDIR)/usr/local and use that if it exists. | ||
# Otherwice we fall back to using /usr. | ||
|
||
LOCAL != test -d $(DESTDIR)/usr/local && echo -n "/local" || echo -n "" | ||
LOCAL ?= $(shell test -d $(DESTDIR)/usr/local && echo "/local" || echo "") | ||
PREFIX ?= /usr$(LOCAL) | ||
|
||
Name := "toggl-redmine" | ||
Exec := "toggl-redmine" | ||
Icon := "toggl-redmine.png" | ||
|
||
default: | ||
# User install | ||
# Run "make install" to install in ~/.local/ | ||
# Run "make uninstall" to uninstall from ~/.local/ | ||
|
||
install: | ||
install -Dm00644 usr/local/share/applications/$(Name).desktop $(DESTDIR)$(HOME)/.local/share/applications/$(Name).desktop | ||
install -Dm00755 usr/local/bin/$(Exec) $(DESTDIR)$(HOME)/.local/bin/$(Exec) | ||
install -Dm00644 usr/local/share/pixmaps/$(Icon) $(DESTDIR)$(HOME)/.local/share/icons/$(Icon) | ||
sed -i -e "s,Exec=.*,Exec=$(DESTDIR)$(HOME)/.local/bin/$(Exec),g" $(DESTDIR)$(HOME)/.local/share/applications/$(Name).desktop | ||
|
||
uninstall: | ||
-rm $(DESTDIR)$(HOME)/.local/share/applications/$(Name).desktop | ||
-rm $(DESTDIR)$(HOME)/.local/bin/$(Exec) | ||
-rm $(DESTDIR)$(HOME)/.local/share/icons/$(Icon) |
5 changes: 5 additions & 0 deletions
5
build/linux/usr/local/share/applications/toggl-redmine.desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
Name=toggl track - Redmine | ||
Exec= | ||
Icon=toggl-redmine |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters