summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2022-04-13 12:45:16 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2022-04-13 12:45:16 -0400
commitf18709d23397cb7673875feafac0d6e50e2a1da6 (patch)
tree392bc0997839470331ca864f3d47c3d34ff21955 /Makefile
parentb6832a4564322f8eec59a061f382d248f1414b5b (diff)
downloadrunescape-launcher-launcher-f18709d23397cb7673875feafac0d6e50e2a1da6.tar.xz
runescape-launcher-launcher-f18709d23397cb7673875feafac0d6e50e2a1da6.zip
generate runescape-launcher-launcher.desktop path1.2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cb04e79..a096e1c 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,15 @@ prefix := /usr/local
bindir := $(prefix)/bin
datarootdir := $(prefix)/share
-all:
+all: runescape-launcher-launcher.desktop
-install:
+runescape-launcher-launcher.desktop: runescape-launcher-launcher.desktop.in
+ sed -e 's#@bindir@#$(bindir)#' $< > $@
+
+clean:
+ rm -f runescape-launcher-launcher.desktop
+
+install: all
install -Dm755 runescape-launcher-launcher $(DESTDIR)$(bindir)/runescape-launcher-launcher
install -Dm644 runescape-launcher-launcher.desktop $(DESTDIR)$(datarootdir)/runescape-launcher-launcher.desktop
install -Dm644 icons/runescape-16x16.png $(DESTDIR)$(datarootdir)/icons/hicolor/16x16/apps/runescape.png
@@ -14,3 +20,5 @@ install:
install -Dm644 icons/runescape-64x64.png $(DESTDIR)$(datarootdir)/icons/hicolor/64x64/apps/runescape.png
install -Dm644 icons/runescape-256x256.png $(DESTDIR)$(datarootdir)/icons/hicolor/256x256/apps/runescape.png
install -Dm644 icons/runescape-512x512.png $(DESTDIR)$(datarootdir)/icons/hicolor/512x512/apps/runescape.png
+
+.PHONY: all clean install