|
1 | 1 | # @configure_input@ |
2 | 2 | # we want to ignore the --datarootdir setting, whatever that means, so here we we mention it: @datarootdir@ |
3 | 3 | include ../../include/config.Makefile |
4 | | -ENCAP = @ENCAP@ |
5 | 4 | VPATH = @srcdir@ |
6 | 5 | ifneq (${prefix},${exec_prefix}) |
7 | 6 | $(error prefix and exec_prefix not the same) |
8 | 7 | endif |
9 | 8 | INFOFILES := $(notdir $(wildcard @pre_infodir@/*.info)) |
10 | | -############################################################################# |
11 | | -# this changes @infodir@, etc: |
12 | | -ifeq "${ENCAP}" "yes" |
13 | | -prefix0 := $(DESTDIR)${prefix}/@package@ |
14 | | -exec_prefix0 := $(DESTDIR)${exec_prefix}/@package@ |
15 | | -else |
16 | | -prefix0 := $(DESTDIR)${prefix} |
17 | | -exec_prefix0 := $(DESTDIR)${exec_prefix} |
18 | | -endif |
19 | | -override prefix := ${prefix0} |
20 | | -override exec_prefix := ${exec_prefix0} |
21 | | -############################################################################# |
22 | 9 | T=@TAR@ --create --file=- --mode=a+rX,og-ws --exclude-from=@srcdir@/../tar-exclusions |
23 | 10 | install:: |
24 | | - $(MKDIR_P) ${prefix} |
25 | | - $(T) -C @pre_prefix@ . | @TAR@ xfp - -C ${prefix} |
26 | | - $(T) -C @pre_exec_prefix@ . | @TAR@ xfp - -C ${exec_prefix} |
27 | | -ifeq "${ENCAP}" "yes" |
28 | | - @INSTALL@ -m 755 ../top/postinstall ../top/preremove ${prefix} |
29 | | - @INSTALL@ -m 644 ../top/INSTALL ../top/encapinfo ${prefix} |
30 | | -endif |
| 11 | + $(MKDIR_P) $(DESTDIR)@prefix@ |
| 12 | + $(T) -C @pre_prefix@ . | @TAR@ xfp - -C $(DESTDIR)@prefix@ |
| 13 | + $(T) -C @pre_exec_prefix@ . | @TAR@ xfp - -C $(DESTDIR)@exec_prefix@ |
31 | 14 |
|
32 | | -install::@infodir@/dir |
33 | | -@infodir@/dir :; @INSTALL_DATA@ @abs_top_srcdir@/files/info-dir-template $@ |
| 15 | +install::$(DESTDIR)@infodir@/dir |
| 16 | +$(DESTDIR)@infodir@/dir :; @INSTALL_DATA@ @abs_top_srcdir@/files/info-dir-template $@ |
34 | 17 |
|
35 | 18 | define ii |
36 | 19 | install:: |
37 | 20 | $(POST_INSTALL) |
38 | | - install-info --quiet --info-dir=@infodir@ @infodir@/$1 |
| 21 | + install-info --quiet --info-dir=$(DESTDIR)@infodir@ $(DESTDIR)@infodir@/$1 |
39 | 22 | $(NORMAL_INSTALL) |
40 | 23 | endef |
41 | 24 | $(foreach i,$(INFOFILES),$(eval $(call ii,$i))) |
|
0 commit comments