Xorg binary: use install-exec-hook rather than install-exec-local
The former was explicitly designed to execute additional code after the binary has been installed. The latter can be executed in any order, hence it's current dependency on install-binPROGRAMS as a workaround. The CYGWIN libXorg.exe.a target is an installation target rather than a post-installation one, so it should not be done as a hook. It does not depend on the Xorg executable being installed. Automake: "These hooks are run after all other install rules of the appropriate type, exec or data, have completed. So, for instance, it is possible to perform post-installation modifications using an install hook". "With the -local targets, there is no particular guarantee of execution order; typically, they are run early, but with parallel make, there is no way to be sure of that". Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
a1d87576a3
commit
35a528e492
|
@ -87,17 +87,16 @@ endif
|
||||||
# do not use $(mkdir_p) if you want automake 1.7 to work
|
# do not use $(mkdir_p) if you want automake 1.7 to work
|
||||||
install-data-local:
|
install-data-local:
|
||||||
mkdir -p $(DESTDIR)$(logdir)
|
mkdir -p $(DESTDIR)$(logdir)
|
||||||
|
if CYGWIN
|
||||||
|
$(INSTALL_DATA) libXorg.exe.a $(DESTDIR)$(libdir)/libXorg.exe.a
|
||||||
|
endif
|
||||||
|
|
||||||
|
install-exec-hook:
|
||||||
install-exec-local: install-binPROGRAMS
|
|
||||||
(cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) Xorg$(EXEEXT) X)
|
(cd $(DESTDIR)$(bindir) && rm -f X && $(LN_S) Xorg$(EXEEXT) X)
|
||||||
if INSTALL_SETUID
|
if INSTALL_SETUID
|
||||||
chown root $(DESTDIR)$(bindir)/Xorg
|
chown root $(DESTDIR)$(bindir)/Xorg
|
||||||
chmod u+s $(DESTDIR)$(bindir)/Xorg
|
chmod u+s $(DESTDIR)$(bindir)/Xorg
|
||||||
endif
|
endif
|
||||||
if CYGWIN
|
|
||||||
$(INSTALL_DATA) libXorg.exe.a $(DESTDIR)$(libdir)/libXorg.exe.a
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Use variables from XORG_MANPAGE_SECTIONS and X Server configuration
|
# Use variables from XORG_MANPAGE_SECTIONS and X Server configuration
|
||||||
# Do not include manpages.am as values are not appropriate for rc files
|
# Do not include manpages.am as values are not appropriate for rc files
|
||||||
|
|
Loading…
Reference in New Issue
Block a user