diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-02-02 10:06:24 -0600 |
---|---|---|
committer | Victor Lowther <victor.lowther@gmail.com> | 2008-02-02 12:40:37 -0600 |
commit | eb9e9de8b93c03a554461f0d1eeea1dba0c78f97 (patch) | |
tree | 1bc5a1361ee1a3843c9e4a9e3d584e11a9af87ce /src | |
parent | 349c2e5a0c7ab1c81be31eeae2d633935d1823a2 (diff) |
Modify src/Makefile.am in preperation for making the pm-action scripts
location independent.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 184c221..8dce4db 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,6 @@ -pm_utils_bindir = $(libdir)/pm-utils/bin +pm_utils_libdir = $(libdir)/pm-utils +pm_utils_bindir = $(pm_utils_libdir)/bin +pm_sysconfdir = $(sysconfdir)/pm pm_utils_bin_PROGRAMS = \ pm-pmu \ @@ -28,7 +30,16 @@ acpowerdir = $(bindir) acpower_SCRIPTS = \ on_ac_power -install-exec-hook: +do_subst = sed -e 's,[@]PM-UTILS-LIBDIR[@],$(pm_utils_libdir),g' \ + -e 's,[@]PM-UTILS-SYSCONFDIR[@],$(pm_sysconfdir),g' + +SUFFIXES = .in + +.in: + $(do_subst) $< >$@ + chmod +x $@ + +install-data-hook: -mkdir -p $(DESTDIR)$(sbindir) -ln -s $(pm_utils_bindir)/pm-action $(DESTDIR)$(sbindir)/pm-suspend -ln -s $(pm_utils_bindir)/pm-action $(DESTDIR)$(sbindir)/pm-hibernate |