File: Makefile.am

package info (click to toggle)
g2ipmsg 0.9.6%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,900 kB
  • ctags: 1,371
  • sloc: ansic: 19,412; sh: 8,850; makefile: 146; xml: 24
file content (99 lines) | stat: -rw-r--r-- 2,674 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
## Process this file with automake to produce Makefile.in

SUBDIRS = src po

include aminclude.am

serverdir = $(libdir)/bonobo/servers
server_in_files = g2ipmsg.server.in
server_DATA = $(server_in_files:.server.in=.server)
$(server_in_files): $(server_in_files:.server.in=.server.in.in)
	sed -e "s|\@BINDIR\@|$(bindir)|" $< > $@

@INTLTOOL_SERVER_RULE@

Applicationdir = $(datadir)/applications
Application_in_files = g2ipmsg.desktop.in
Application_DATA = $(Application_in_files:.desktop.in=.desktop) 
@INTLTOOL_DESKTOP_RULE@

schemadir = $(GCONF_SCHEMA_FILE_DIR)
schema_in_files = g2ipmsg.schemas.in
schema_DATA = $(schema_in_files:.schemas.in=.schemas) 	
@INTLTOOL_SCHEMAS_RULE@

uidir = $(datadir)/gnome-2.0/ui
ui_DATA = g2ipmsg.xml

MOSTLYCLEANFILES = $(DX_CLEANFILES)

EXTRA_DIST =          \
	$(DX_CONFIG)  \
	macros/*.m4   \
	aminclude.am  \
	autogen.sh    \
	g2ipmsg.glade \
	g2ipmsg.gladep \
	g2ipmsg.server.in.in \
	g2ipmsg.desktop.in \
	g2ipmsg.schemas.in  \
	g2ipmsg.xml    \
	g2ipmsg.spec   \
	README.jp      \
	intltool-extract.in \
	intltool-update.in  \
	intltool-merge.in

install-data-local: install-schemas
	@$(NORMAL_INSTALL)
	if test -d $(srcdir)/pixmaps; then \
	  $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
	  for pixmap in $(srcdir)/pixmaps/*.xpm; do \
	    if test -f $$pixmap; then \
	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
	    fi \
	  done \
	fi
	if test -d $(srcdir)/sounds; then \
	  $(mkinstalldirs) $(DESTDIR)$(datadir)/sounds/$(PACKAGE); \
	  for sound in $(srcdir)/sounds/*; do \
	    if test -f $$sound; then \
	      $(INSTALL_DATA) $$sound $(DESTDIR)$(datadir)/sounds/$(PACKAGE); \
	    fi \
	  done \
	fi 
	  for pngfile in $(srcdir)/pixmaps/*.png; do \
	    if test -f $$pngfile; then \
	      $(INSTALL_DATA) $$pngfile $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
	    fi \
	  done 
#for GNOME menu icons
	$(INSTALL_DATA) $(srcdir)/pixmaps/ipmsg.png $(DESTDIR)$(datadir)/pixmaps

# 	if test -f $(srcdir)/$(server_DATA); then \
# 	     $(INSTALL_DATA) $(srcdir)/$(server_DATA) $(serverdir); \
# 	fi

dist-hook:
	if test -d pixmaps; then \
	  mkdir $(distdir)/pixmaps; \
	  for pixmap in pixmaps/*; do \
	    if test -f $$pixmap; then \
	      cp -p $$pixmap $(distdir)/pixmaps; \
	    fi \
	  done \
	fi
	if test -d sounds; then \
	  mkdir $(distdir)/sounds; \
	  for sound in sounds/*; do \
	    if test -f $$sound; then \
	      cp -p $$sound $(distdir)/sounds; \
	    fi \
	  done \
	fi 

install-schemas: g2ipmsg.schemas
if GCONF_SCHEMAS_INSTALL
	GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
	gconftool-2 --makefile-install-rule g2ipmsg.schemas
endif GCONF_SCHEMAS_INSTALL