Debian Codegraph @

desktop/Makefile.am

raw
1 # Makefile.am file for nettoe
2 # Maintained by Mats Erik Andersson <[email protected]>
3
4 # This file is processed by automake.
5
6 EXTRA_DIST = ocross.xpm ocross_skew.xpm \
7 ocross_left.xpm ocross_right.xpm \
8 ocross_bottom.xpm ocross_top.xpm \
9 ocross16.png ocross32.png \
10 ocross_skew16.png ocross_skew32.png \
11 nettoe.desktop.in nettoe.menu.in
12
13 DESKTOP = nettoe.desktop
14 ICON = ocross_skew
15 MENU = nettoe.menu
16
17 BUILT_SOURCES =
18
19 if ENABLE_DESKTOP
20 BUILT_SOURCES += $(DESKTOP)
21 if ENABLE_MENU
22 BUILT_SOURCES += $(MENU)
23 endif
24 endif
25
26 applicationsdir = @applicationsdir@
27 hicolordir = @iconsdir@/hicolor
28 menudir = @menudir@
29 pixmapsdir = @pixmapsdir@
30
31 rewrite = 's|[@]bindir[@]|$(bindir)|; s|[@]pixmapsdir[@]|$(pixmapsdir)|'
32
33 $(DESKTOP): Makefile $(DESKTOP).in
34 $(SED) -e $(rewrite) $(srcdir)/[email protected] > $@
35
36 $(MENU): Makefile $(MENU).in
37 $(SED) -e $(rewrite) $(srcdir)/[email protected] > $@
38
39 if ENABLE_DESKTOP
40 applications_DATA = $(DESKTOP)
41
42 if ENABLE_MENU
43 menu_DATA = $(MENU)
44 endif
45
46 install-data-hook:
47 test -d "$(DESTDIR)$(pixmapsdir)" || \
48 $(mkdir_p) "$(DESTDIR)$(pixmapsdir)"
49 $(INSTALL_DATA) $(srcdir)/$(ICON).xpm "$(DESTDIR)$(pixmapsdir)"/nettoe.xpm
50 test -d "$(DESTDIR)$(hicolordir)"/16x16/apps || \
51 $(mkdir_p) "$(DESTDIR)$(hicolordir)"/16x16/apps
52 test -d "$(DESTDIR)$(hicolordir)"/32x32/apps || \
53 $(mkdir_p) "$(DESTDIR)$(hicolordir)"/32x32/apps
54 test -s $(srcdir)/"$(ICON)16.png" && \
55 $(INSTALL_DATA) $(srcdir)/"$(ICON)16.png" "$(DESTDIR)$(hicolordir)"/16x16/apps/nettoe.png
56 test -s $(srcdir)/"$(ICON)32.png" && \
57 $(INSTALL_DATA) $(srcdir)/"$(ICON)32.png" "$(DESTDIR)$(hicolordir)"/32x32/apps/nettoe.png
58
59 uninstall-hook:
60 rm "$(DESTDIR)$(pixmapsdir)"/nettoe.xpm \
61 "$(DESTDIR)$(hicolordir)"/16x16/apps/nettoe.png \
62 "$(DESTDIR)$(hicolordir)"/32x32/apps/nettoe.png
63 endif
64
65 CLEANFILES = $(DESKTOP) $(MENU)