summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: dbb26e3ff8ee7211ea6483fecd3f29b7cf2f1420 (plain)
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
100
101
102
103
# set the include path for X, qt and KDE
INCLUDES = \
	-DPACKAGE_KDE_SOUND_DIR=\""$(prefix)/share/sounds/"\" \
	$(all_includes) \
	@PACKAGE_CFLAGS@

# these are the headers for your project
noinst_HEADERS =                                \
		autodimm.h			\
		autosuspend.h                   \
		blacklisteditdialog.h           \
		configuredialog.h               \
		countdowndialog.h		\
		dbusInterface.h                       \
		detaileddialog.h                \
		hardware.h                      \
		hardware_battery.h              \
		hardware_batteryCollection.h    \
		hardware_cpu.h                  \
		inactivity.h                    \
		infodialog.h                    \
		tdepowersave.h                    \
		logviewer.h			\
		privileges.h			\
		screen.h                        \
		settings.h                      \
		suspenddialog.h


# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO

KDE_ICON = tdepowersave

#########################################################################
# APPLICATION SECTION
#########################################################################
# this is the program that gets installed.  it's name is used for all
# of the other Makefile.am variables

bin_PROGRAMS =
lib_LTLIBRARIES =
tdeinit_LTLIBRARIES = tdepowersave.la

# the application source, library search path, and link libraries
tdepowersave_la_SOURCES =                                 \
			dummy.cpp                       \
			autodimm.cpp			\
			autosuspend.cpp                 \
			blacklistedit_Dialog.ui         \
			blacklisteditdialog.cpp         \
			configure_Dialog.ui             \
			configuredialog.cpp             \
			countdown_Dialog.ui		\
			countdowndialog.cpp		\
			dbusInterface.cpp                     \
			detailed_Dialog.ui              \
			detaileddialog.cpp              \
			hardware.cpp                    \
			hardware_battery.cpp            \
			hardware_batteryCollection.cpp  \
			hardware_cpu.cpp                \
			inactivity.cpp                  \
			info_Dialog.ui                  \
			infodialog.cpp                  \
			tdepowersave.cpp                  \
			tdepowersave.skel                 \
			log_viewer.ui			\
			logviewer.cpp			\
			main.cpp                        \
			screen.cpp                      \
			settings.cpp                    \
			suspenddialog.cpp               \
			suspend_Dialog.ui


tdepowersave_la_LDFLAGS = $(KDE_RPATH) $(all_libraries) -module -avoid-version
tdepowersave_la_LIBADD = $(LIB_KIO) @PACKAGE_LIBS@ -ldbus-tqt-1 -lXss -lXext -lXtst

# this is where the desktop file will go 
xdg_apps_DATA = tdepowersave.desktop

# and for autostart
autostartdir = $(prefix)/share/autostart
autostart_DATA = tdepowersave-autostart.desktop

# this is where the shell's XML-GUI resource file goes
shellrcdir   = $(kde_datadir)/tdepowersave
shellrc_DATA = eventsrc 
# shellrc_DATA = tdepowersaveui.rc

# pics subdir
SUBDIRS = pics
messages:
	$(EXTRACTRC) *ui eventsrc >> rc.cpp
	$(XGETTEXT) `find . -name \*.h -o -name \*.H -o -name \*.cpp -o -name \*.C` -o $(podir)/tdepowersave.pot
	rm -f rc.cpp

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(kde_confdir)
	$(INSTALL_DATA) $(top_srcdir)/src/config/tdepowersaverc_default $(DESTDIR)$(kde_confdir)/tdepowersaverc