summaryrefslogtreecommitdiff
path: root/Makefile
blob: a096e1c80d2376bf4d206975fff269468d1c244a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
prefix := /usr/local
bindir := $(prefix)/bin
datarootdir := $(prefix)/share

all: runescape-launcher-launcher.desktop

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
	install -Dm644 icons/runescape-24x24.png $(DESTDIR)$(datarootdir)/icons/hicolor/24x24/apps/runescape.png
	install -Dm644 icons/runescape-32x32.png $(DESTDIR)$(datarootdir)/icons/hicolor/32x32/apps/runescape.png
	install -Dm644 icons/runescape-48x48.png $(DESTDIR)$(datarootdir)/icons/hicolor/48x48/apps/runescape.png
	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