Added support for scripts which can be run after a user/group is added
[platform/upstream/gumd.git] / src / daemon / Makefile.am
1 SUBDIRS = dbus
2 NULL=
3
4 bin_PROGRAMS = gumd
5
6 gumd_SOURCES = \
7     main.c \
8     gumd-daemon.c \
9     gumd-daemon.h \
10     gumd-daemon-user.c \
11     gumd-daemon-user.h \
12     gumd-daemon-group.c \
13     gumd-daemon-group.h \
14     gumd-types.h \
15     $(NULL)
16
17 gumd_CFLAGS = \
18     $(GUMD_INCLUDES) \
19     $(GUMD_CFLAGS) \
20     -I$(top_srcdir)/src \
21     -DUSERADD_SCRIPT_DIR='"${sysconfdir}/gumd/useradd.d"' \
22     -DUSERDEL_SCRIPT_DIR='"${sysconfdir}/gumd/userdel.d"' \
23     -DGROUPADD_SCRIPT_DIR='"${sysconfdir}/gumd/groupadd.d"' \
24     -DGROUPDEL_SCRIPT_DIR='"${sysconfdir}/gumd/groupdel.d"' \
25     $(NULL)
26
27 gumd_LDADD = \
28     $(top_builddir)/src/common/libgum-common.la \
29     $(top_builddir)/src/daemon/dbus/libgumd-dbus.la \
30     $(GUMD_LIBS) \
31     $(NULL)
32
33 EXTRA_DIST = \
34       gumd.conf.in
35
36 gumdconfdir = ${sysconfdir}/gumd
37 gumdconf_DATA = gumd.conf
38
39 if SET_PERMISSIONS
40 install-exec-hook:
41         chown root $(DESTDIR)$(bindir)/gumd || true
42         chmod u+s $(DESTDIR)$(bindir)/gumd || true
43 endif
44
45 CLEANFILES = *.gcno *.gcda