File: Makefile.am

package info (click to toggle)
xkbsel 0.13-10
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,752 kB
  • ctags: 862
  • sloc: sh: 8,953; ansic: 5,960; cpp: 435; makefile: 347; lex: 284; sed: 93
file content (97 lines) | stat: -rw-r--r-- 2,731 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
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
if WITH_KDE
kdeprog = xkbsel-kde
kdeincl = @QT_INCLUDES@ @KDE_INCLUDES@
kdelib = @QT_LDFLAGS@ @KDE_LDFLAGS@ @X_LDFLAGS@ -lkdeui -lkdecore -lqt -lXext -lX11 @LIBSOCKET@
mocfiles = mkbdselmenu-kde.cpp mselind-kde.cpp
endif

if WITH_GNOME
gnomeprog = xkbsel_gnome_applet
gnomelib = @GNOME_LIBS@
gnomecflags = @GNOME_CFLAGS@
endif

if WITH_WMAKER
wmakerprog = wmxkbsel
wmakerlib = @WMAKER_LIBS@
wmakercflags = @WMAKER_CFLAGS@
endif

bin_PROGRAMS = xkbseldb xkbsel xkbsel-aw $(kdeprog) $(gnomeprog) $(wmakerprog)

xkbseldb_SOURCES = xkbseldb.c
xkbseldb_LDADD = ../libs/libxkbsel.a

xkbsel_SOURCES = xkbsel.c
xkbsel_LDADD = ../libs/libxkbselx.a ../libs/libxkbsel.a @X_LDFLAGS@ -lX11 @LIBSOCKET@

xkbsel_aw_SOURCES = xkbsel-aw.c xkbsel-aw.h
xkbsel_aw_LDADD = ../libs/libxkbselx.a ../libs/libxkbsel.a @X_LDFLAGS@ -lXaw -lXt -lX11 @LIBSOCKET@


if WITH_KDE
xkbsel_kde_SOURCES = xkbsel-kde.cpp \
	kbdselmenu-kde.h kbdselmenu-kde.cpp \
	selind-kde.h selind-kde.cpp \
	$(mocfiles)

xkbsel_kde_LDADD = ../libs/libxkbselx.a ../libs/libxkbsel.a $(kdelib)

mkbdselmenu-kde.cpp: kbdselmenu-kde.h
	@echo '$(MOC) $< -o $@'; \
	$(MOC) $< -o $@

mselind-kde.cpp: selind-kde.h
	@echo '$(MOC) $< -o $@'; \
	$(MOC) $< -o $@

endif

if WITH_GNOME
xkbsel_gnome_applet_SOURCES = xkbsel-gnome.c
xkbsel_gnome_applet_LDADD = ../libs/libxkbselx.a ../libs/libxkbsel.a $(gnomelib)
endif

if WITH_WMAKER
wmxkbsel_SOURCES = wmxkbsel.c
wmxkbsel_LDADD = ../libs/libxkbselx.a ../libs/libxkbsel.a $(wmakerlib)
endif

EXTRA_DIST = xkbsel-kde.kdelnk \
	xkbsel-kde.cpp \
	kbdselmenu-kde.h kbdselmenu-kde.cpp \
	selind-kde.h selind-kde.cpp \
	xkbsel_gnome_applet.desktop xkbsel_gnome_applet.gnorba \
	xkbsel-gnome.c \
	wmxkbsel.c


MAINTAINERCLEANFILES = $(mocfiles)

INCLUDES += -I$(top_srcdir)/libs $(kdeincl) $(gnomecflags) $(wmakercflags) @X_INCLUDES@

CORBADIR = /etc

install-data-local:
	if [ x$(kdeprog) = xxkbsel-kde ] ; then \
	  $(mkinstalldirs) $(DESTDIR)$(kde_appsdir)/Utilities ; \
	  $(INSTALL_DATA) xkbsel-kde.kdelnk $(DESTDIR)$(kde_appsdir)/Utilities ; \
	fi
	if [ x$(gnomeprog) = xxkbsel_gnome_applet ] ; then \
	  $(mkinstalldirs) $(DESTDIR)$(datadir)/applets/Utility ; \
	  $(INSTALL_DATA) xkbsel_gnome_applet.desktop $(DESTDIR)$(datadir)/applets/Utility ; \
	  $(mkinstalldirs) $(DESTDIR)$(CORBADIR)/CORBA/servers ; \
	  $(INSTALL_DATA) xkbsel_gnome_applet.gnorba $(DESTDIR)$(CORBADIR)/CORBA/servers ; \
	fi


uninstall-local:
	if [ x$(kdeprog) = xxkbsel-kde ] ; then \
	  rm -f $(DESTDIR)$(kde_appsdir)/Utilities/xkbsel-kde.kdelnk ; \
	fi
	if [ x$(gnomeprog) = xxkbselgnome_applet ] ; then \
	  rm -f $(DESTDIR)$(datadir)/applets/Utility/xkbsel_gnome_applet.desktop ; \
	  rm -f $(DESTDIR)$(CORBADIR)/CORBA/servers/xkbsel_gnome_applet.gnorba ; \
	fi