Commit eebdea08 authored by Andrew Dunstan's avatar Andrew Dunstan

Ensure installation dirs are built before contents are installed (v2)

Push dependency on installdirs down to individual targets.

Christoph Berg
parent ee01d848
...@@ -124,7 +124,7 @@ all: all-lib ...@@ -124,7 +124,7 @@ all: all-lib
endif # MODULE_big endif # MODULE_big
install: all installcontrol installdata installdatatsearch installdocs installscripts | installdirs install: all installdirs installcontrol installdata installdatatsearch installdocs installscripts
ifdef MODULES ifdef MODULES
$(INSTALL_SHLIB) $(addsuffix $(DLSUFFIX), $(MODULES)) '$(DESTDIR)$(pkglibdir)/' $(INSTALL_SHLIB) $(addsuffix $(DLSUFFIX), $(MODULES)) '$(DESTDIR)$(pkglibdir)/'
endif # MODULES endif # MODULES
...@@ -132,29 +132,29 @@ ifdef PROGRAM ...@@ -132,29 +132,29 @@ ifdef PROGRAM
$(INSTALL_PROGRAM) $(PROGRAM)$(X) '$(DESTDIR)$(bindir)' $(INSTALL_PROGRAM) $(PROGRAM)$(X) '$(DESTDIR)$(bindir)'
endif # PROGRAM endif # PROGRAM
installcontrol: $(addsuffix .control, $(EXTENSION)) installcontrol: $(addsuffix .control, $(EXTENSION)) | installdirs
ifneq (,$(EXTENSION)) ifneq (,$(EXTENSION))
$(INSTALL_DATA) $^ '$(DESTDIR)$(datadir)/extension/' $(INSTALL_DATA) $^ '$(DESTDIR)$(datadir)/extension/'
endif endif
installdata: $(DATA) $(DATA_built) installdata: $(DATA) $(DATA_built) | installdirs
ifneq (,$(DATA)$(DATA_built)) ifneq (,$(DATA)$(DATA_built))
$(INSTALL_DATA) $^ '$(DESTDIR)$(datadir)/$(datamoduledir)/' $(INSTALL_DATA) $^ '$(DESTDIR)$(datadir)/$(datamoduledir)/'
endif endif
installdatatsearch: $(DATA_TSEARCH) installdatatsearch: $(DATA_TSEARCH) | installdirs
ifneq (,$(DATA_TSEARCH)) ifneq (,$(DATA_TSEARCH))
$(INSTALL_DATA) $^ '$(DESTDIR)$(datadir)/tsearch_data/' $(INSTALL_DATA) $^ '$(DESTDIR)$(datadir)/tsearch_data/'
endif endif
installdocs: $(DOCS) installdocs: $(DOCS) | installdirs
ifdef DOCS ifdef DOCS
ifdef docdir ifdef docdir
$(INSTALL_DATA) $^ '$(DESTDIR)$(docdir)/$(docmoduledir)/' $(INSTALL_DATA) $^ '$(DESTDIR)$(docdir)/$(docmoduledir)/'
endif # docdir endif # docdir
endif # DOCS endif # DOCS
installscripts: $(SCRIPTS) $(SCRIPTS_built) installscripts: $(SCRIPTS) $(SCRIPTS_built) | installdirs
ifdef SCRIPTS ifdef SCRIPTS
$(INSTALL_SCRIPT) $^ '$(DESTDIR)$(bindir)/' $(INSTALL_SCRIPT) $^ '$(DESTDIR)$(bindir)/'
endif # SCRIPTS endif # SCRIPTS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment