File: Makefile

package info (click to toggle)
wstools 0.4.8d-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,440 kB
  • ctags: 1,991
  • sloc: cpp: 13,880; makefile: 469
file content (60 lines) | stat: -rw-r--r-- 2,384 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# This Makefile puts the wstools.desktop files and icons into the correct
# places for both KDE and Gnome, at least on SuSE 8.2
#

MENU = Internet/HamRadio

ICON_BASE = /usr/X11R6/share/icons/png/hicolor

KDE_BASE = /etc/opt/kde3/share/applnk/SuSE/$(MENU)

GNOME_BASE = /etc/opt/gnome/SuSE/$(MENU)

install:	install-kde install-gnome install-icons

install-kde:
	install -g root -o root -m 0644 fsk441.desktop.kde $(KDE_BASE)/fsk441.desktop
	install -g root -o root -m 0644 jt44.desktop.kde $(KDE_BASE)/jt44.desktop

install-gnome:
	install -g root -o root -m 0644 fsk441.desktop.gnome $(GNOME_BASE)/fsk441.desktop
	install -g root -o root -m 0644 jt44.desktop.gnome $(GNOME_BASE)/jt44.desktop

install-icons:
	install -g root -o root -m 0644 big.fsk441.png    $(ICON_BASE)/48x48/apps/fsk441.png
	install -g root -o root -m 0644 mini.fsk441.png   $(ICON_BASE)/16x16/apps/fsk441.png
	install -g root -o root -m 0644 normal.fsk441.png $(ICON_BASE)/32x32/apps/fsk441.png
	ln -s $(ICON_BASE)/48x48/apps/fsk441.png $(ICON_BASE)/all/big.fsk441.png
	ln -s $(ICON_BASE)/16x16/apps/fsk441.png $(ICON_BASE)/all/mini.fsk441.png
	ln -s $(ICON_BASE)/32x32/apps/fsk441.png $(ICON_BASE)/all/normal.fsk441.png
	install -g root -o root -m 0644 big.jt44.png    $(ICON_BASE)/48x48/apps/jt44.png
	install -g root -o root -m 0644 mini.jt44.png   $(ICON_BASE)/16x16/apps/jt44.png
	install -g root -o root -m 0644 normal.jt44.png $(ICON_BASE)/32x32/apps/jt44.png
	ln -s $(ICON_BASE)/48x48/apps/jt44.png $(ICON_BASE)/all/big.jt44.png
	ln -s $(ICON_BASE)/16x16/apps/jt44.png $(ICON_BASE)/all/mini.jt44.png
	ln -s $(ICON_BASE)/32x32/apps/jt44.png $(ICON_BASE)/all/normal.jt44.png

uninstall:	uninstall-kde uninstall-gnome uninstall-icons

uninstall-kde:
	rm -f $(KDE_BASE)/fsk441.desktop
	rm -f $(KDE_BASE)/jt44.desktop

uninstall-gnome:
	rm -f $(GNOME_BASE)/fsk441.desktop
	rm -f $(GNOME_BASE)/jt44.desktop

uninstall-icons:
	rm -f $(ICON_BASE)/all/big.fsk441.png
	rm -f $(ICON_BASE)/all/mini.fsk441.png
	rm -f $(ICON_BASE)/all/normal.fsk441.png
	rm -f $(ICON_BASE)/16x16/apps/fsk441.png
	rm -f $(ICON_BASE)/32x32/apps/fsk441.png
	rm -f $(ICON_BASE)/48x48/apps/fsk441.png
	rm -f $(ICON_BASE)/all/big.jt44.png
	rm -f $(ICON_BASE)/all/mini.jt44.png
	rm -f $(ICON_BASE)/all/normal.jt44.png
	rm -f $(ICON_BASE)/16x16/apps/jt44.png
	rm -f $(ICON_BASE)/32x32/apps/jt44.png
	rm -f $(ICON_BASE)/48x48/apps/jt44.png