projects
/
psensor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow to build psensor-server even if gtk/gconf/x11/xext is not present
[psensor.git]
/
src
/
Makefile.am
diff --git
a/src/Makefile.am
b/src/Makefile.am
index
db4885f
..
da2b590
100644
(file)
--- a/
src/Makefile.am
+++ b/
src/Makefile.am
@@
-26,9
+26,18
@@
LIBS = \
$(PTHREAD_LIBS)\
$(SENSORS_LIBS)
$(PTHREAD_LIBS)\
$(SENSORS_LIBS)
+if GTK
+if X11
+if XEXT
+if GCONF
bin_PROGRAMS = psensor
bin_PROGRAMS = psensor
+dist_man_MANS = psensor.1
+endif
+endif
+endif
+endif
+
psensor_SOURCES = \
psensor_SOURCES = \
- compat.h \
cfg.h cfg.c \
graph.h graph.c \
main.c \
cfg.h cfg.c \
graph.h graph.c \
main.c \
@@
-59,9
+68,11
@@
AM_CPPFLAGS += $(APPINDICATOR_CFLAGS)
endif
if NVIDIA
endif
if NVIDIA
+if X11
AM_CPPFLAGS += $(NVIDIA_CFLAGS)
LIBS += $(NVIDIA_LIBS)
endif
AM_CPPFLAGS += $(NVIDIA_CFLAGS)
LIBS += $(NVIDIA_LIBS)
endif
+endif
if LIBATIADL
AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
if LIBATIADL
AM_CPPFLAGS += $(LIBATIADL_CFLAGS)
@@
-87,14
+98,13
@@
AM_CPPFLAGS += $(CURL_CFLAGS) $(JSON_CFLAGS)
endif
endif
endif
endif
-schemadir = $(GCONF_SCHEMA_FILE_DIR)
-schema_DATA = psensor.schemas
-
-dist_man_MANS = psensor.1
EXTRA_DIST = description.txt psensor.schemas
EXTRA_DIST = description.txt psensor.schemas
-if GCONF_SCHEMAS_INSTALL
+if GCONF
+schemadir = $(GCONF_SCHEMA_FILE_DIR)
+schema_DATA = psensor.schemas
+
install-data-local:
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_srcdir)/src/$(schema_DATA)
endif
install-data-local:
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(top_srcdir)/src/$(schema_DATA)
endif