~3v1n0/upstart/activation-proper-dbus-path

« back to all changes in this revision

Viewing changes to scripts/Makefile.am

  • Committer: Dimitri John Ledkov
  • Date: 2014-04-04 14:16:52 UTC
  • mto: This revision was merged to the branch mainline in revision 1613.
  • Revision ID: dimitri.ledkov@canonical.com-20140404141652-uahyycdb93outr8m
Do not process python modules, import vars instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
        upstart-monitor.py
13
13
 
14
14
noinst_SCRIPTS = \
15
 
        pyupstart.py
 
15
        pyupstart.py \
 
16
        pyupstartvars.py
16
17
 
17
18
CLEANFILES = \
18
 
        pyupstart.py
 
19
        pyupstartvars.py pyupstartvars.py.tmp
19
20
 
20
21
EXTRA_DIST = \
21
22
        $(install_scripts) \
22
 
        pyupstart.py.in \
 
23
        pyupstart.py \
 
24
        pyupstartvars.py \
23
25
        tests/__init__.py \
24
26
        tests/test_pyupstart_session_init.py \
25
27
        tests/test_pyupstart_system_init.py
26
28
 
27
 
pyupstart.py: pyupstart.py.in Makefile
28
 
        sed -e 's|[@]built_init_binary[@]|$(UPSTART_BINARY)|g' \
29
 
            -e 's|[@]built_initctl_binary[@]|$(INITCTL_BINARY)|g' \
30
 
            -e 's|[@]built_file_bridge_binary[@]|$(FILE_BRIDGE_BINARY)|g' \
31
 
            $< > $@
32
 
        chmod +x $@
 
29
pyupstartvars.py: Makefile
 
30
        echo "BUILT_UPSTART = '$(UPSTART_BINARY)'" > pyupstartvars.py.tmp
 
31
        echo "BUILT_INITCTL = '$(INITCTL_BINARY)'" >> pyupstartvars.py.tmp
 
32
        echo "BUILT_FILE_BRIDGE = '$(FILE_BRIDGE_BINARY)'" >> pyupstartvars.py.tmp
 
33
        mv pyupstartvars.py.tmp pyupstartvars.py
33
34
 
34
35
dist_man_MANS = \
35
36
  man/initctl2dot.8 \