File: Makefile.am

package info (click to toggle)
xkbsel 0.12-8
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,568 kB
  • ctags: 844
  • sloc: sh: 6,829; ansic: 5,760; cpp: 432; makefile: 332; lex: 284; sed: 93
file content (86 lines) | stat: -rw-r--r-- 2,410 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
if WITH_KDE
kdeprog = xkbsel-kde
qtincl = @QT_INCLUDES@
qtlib = @LIB_KDECORE@
mocfiles = mkbdselmenu-kde.cpp mselind-kde.cpp
endif

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


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

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 @X_LDFLAGS@ -lkdeui -lkdecore -lqt -lXext -lX11 @LIBSOCKET@

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_GTK
xkbsel_gnome_applet_SOURCES = xkbsel-gnome.c

xkbsel_gnome_applet_LDADD = ../libs/libxkbselx.a ../libs/libxkbsel.a $(gnomelib)

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


MAINTAINERCLEANFILES = $(mocfiles)

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

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)$(sysconfdir)/CORBA/servers ; \
	  $(INSTALL_DATA) xkbsel_gnome_applet.gnorba $(DESTDIR)$(sysconfdir)/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)$(sysconfdir)/CORBA/servers/xkbsel_gnome_applet.gnorba ; \
	fi