File: Makefile.am

package info (click to toggle)
gweled 0.8.repack-5
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,104 kB
  • ctags: 441
  • sloc: ansic: 3,624; sh: 1,084; makefile: 96
file content (46 lines) | stat: -rw-r--r-- 1,200 bytes parent folder | download
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
icons = \
    apps_16x16_gweled.png \
    apps_24x24_gweled.png \
	apps_48x48_gweled.png \
	apps_scalable_gweled.svg

gladedir = $(datadir)/gweled/
glade_DATA = 	\
	gweled.ui

@INTLTOOL_DESKTOP_RULE@
desktopdir = $(datadir)/applications
desktop_in_files = gweled.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)

EXTRA_DIST = \
      $(icon_DATA)      \
      $(glade_DATA)     \
      $(desktop_DATA)   \
      $(NULL)


###############################################################################

install-icons:
	for icon in $(icons); do \
		CONTEXT=`echo $$icon | cut -d_ -f1`; \
		SIZE=`echo $$icon | cut -d_ -f2`; \
		ICONFILE=`echo $$icon | cut -d_ -f3`; \
		mkdir -p $(DESTDIR)$(datadir)/icons/hicolor/$$SIZE/$$CONTEXT; \
		$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/hicolor/$$SIZE/$$CONTEXT/$$ICONFILE; \
	done;

uninstall-icons:
	-for icon in $(icons); do \
		CONTEXT=`echo $$icon | cut -d_ -f1`; \
		SIZE=`echo $$icon | cut -d_ -f2`; \
		ICONFILE=`echo $$icon | cut -d_ -f3`; \
		rm -f $(DESTDIR)$(datadir)/icons/hicolor/$$SIZE/$$CONTEXT/$$ICONFILE; \
	done;

clean-local:
	rm -f *~

install-data-local: install-icons
uninstall-local: uninstall-icons