use an install hook to setuid freqset thus avoiding mkinstalldir issues with diff versions of automake

SVN revision: 14261
This commit is contained in:
Mike Frysinger 2005-04-20 15:09:08 +00:00
parent d85eba72f2
commit 6bbf89d1d2
1 changed files with 5 additions and 11 deletions

View File

@ -5,9 +5,6 @@ MODULE = cpufreq
filesdir = $(libdir)/enlightenment/modules/$(MODULE) filesdir = $(libdir)/enlightenment/modules/$(MODULE)
files_DATA = \ files_DATA = \
module_icon.png module_icon.png
freqsetdir = $(libdir)/enlightenment/modules/$(MODULE)
freqset_DATA = \
freqset$(EXEEXT)
EXTRA_DIST = $(files_DATA) EXTRA_DIST = $(files_DATA)
@ -28,16 +25,13 @@ module_la_LIBADD = @e_libs@ @dlopen_libs@
module_la_LDFLAGS = -module -avoid-version module_la_LDFLAGS = -module -avoid-version
module_la_DEPENDENCIES = $(top_builddir)/config.h module_la_DEPENDENCIES = $(top_builddir)/config.h
all-local: freqset$(EXEEXT) freqsetdir = $(pkgdir)
freqset_DATA = \
freqset$(EXEEXT)
setuid_root_mode = a=rx,u+s setuid_root_mode = a=rx,u+s
INSTALL_SU = \ install-data-hook:
test -z "$(pkgdir)" || $(MKINSTALLDIRS) "$(DESTDIR)$(pkgdir)"; \ @chmod $(setuid_root_mode) $(DESTDIR)$(freqsetdir)/freqset$(EXEEXT)
echo "$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) -m $(setuid_root_mode) freqset$(EXEEXT) $(DESTDIR)$(pkgdir)/freqset$(EXEEXT)"; \
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(INSTALL) -m $(setuid_root_mode) freqset$(EXEEXT) $(DESTDIR)$(pkgdir)/freqset$(EXEEXT);
install-freqsetDATA: freqset$(EXEEXT)
@$(INSTALL_SU)
noinst_PROGRAMS = freqset noinst_PROGRAMS = freqset
freqset_SOURCES = freqset.c freqset_SOURCES = freqset.c