summaryrefslogtreecommitdiff
path: root/tools/freebsd/Makefile.am
blob: 70b64a677d25c3611688eba8191e1a1457c69e6e (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
## We require new-style dependency handling.
AUTOMAKE_OPTIONS = 1.7

NULL =

SUBDIRS = \
	$(NULL)

scriptdir = $(libdir)/ConsoleKit/scripts
script_SCRIPTS =			\
	ck-system-stop			\
	ck-system-restart		\
	ck-system-suspend		\
	ck-system-hibernate		\
	ck-system-hybridsleep		\
	ck-get-x11-display-device	\
	ck-get-x11-server-pid		\
	$(NULL)

EXTRA_DIST =				\
	$(script_SCRIPTS)		\
	$(NULL)

MAINTAINERCLEANFILES =			\
	*~				\
	Makefile.in


check:
	for f in $(script_SCRIPTS); do \
            echo -n "Validate shell syntax in $$f : "; \
            sh -n $(srcdir)/$$f 2> sh.error;\
            if test -s sh.error; then \
                echo failed; \
                cat sh.error; \
                rm -f sh.error; \
                exit 1; \
            else \
                echo ok; \
                rm -f sh.error; \
            fi; \
        done;