File: Makefile.am

package info (click to toggle)
powersave 0.15.20-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 4,360 kB
  • ctags: 610
  • sloc: sh: 10,767; cpp: 5,264; ansic: 1,495; makefile: 342
file content (73 lines) | stat: -rw-r--r-- 1,926 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
SCRIPT_IN_FILES = rcpowersaved.in setDefaultTrippoints.sh.in

pubscript_SCRIPTS = \
        helper_functions \
        x_helper_functions \
        wm_logout \
        wm_shutdown \
        notify \
        debug_events \
        question_default_yes \
	question_default_no \
	beep_hilo \
	beep_lohi \
	log_ac_change \
	powersaved_script_return

script_SCRIPTS = do_screen_saver \
		 do_x_notification \
		 wttyhx \
                 setDefaultTrippoints.sh \
		 rcpowersaved \
		 powersave-notify

docscriptdir = $(docdir)/scripts
docscript_SCRIPTS =  powersave_logs \
	       update_config_files_after_09.sh \
	       update_config_files_after_014.sh \
	       restore_default_config


allscripts = $(pubscript_SCRIPTS) $(script_SCRIPTS)

EXTRA_DIST = $(pubscript_SCRIPTS)    \
             $(script_SCRIPTS)       \
	     $(docscript_SCRIPTS)          \
	     $(SCRIPT_IN_FILES)	     \
             rcpowersaved            \
	     rcpowersaved.redhat

%: %.in Makefile
	$(edit) $< >$@

edit = sed \
	-e 's|@bindir[@]|$(bindir)|g' \
	-e 's|@sbindir[@]|$(sbindir)|g' \
	-e 's|@configdir[@]|$(configdir)|g'

CLEANFILES = rcpowersaved setDefaultTrippoints.sh

install-exec-hook:
	$(INSTALL) -d $(DESTDIR)$(sysconfdir)/init.d
	$(INSTALL) -m 755 $(srcdir)/rcpowersaved $(DESTDIR)$(sysconfdir)/init.d/powersaved
	ln -sf ../../$(sysconfdir)/init.d/powersaved $(DESTDIR)$(sbindir)/rcpowersaved

uninstall-local:
	rm -f $(DESTIDR)/$(sbindir)/rcpowersaved
	rm -f $(DESTDIR)/$(sysconfdir)/init.d/powersaved

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