diff options
Diffstat (limited to 'wrappers/Makefile')
-rw-r--r-- | wrappers/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wrappers/Makefile b/wrappers/Makefile index 4aee778..19a1da3 100644 --- a/wrappers/Makefile +++ b/wrappers/Makefile @@ -6,11 +6,14 @@ include ../settings.mk PORTDIR ?= $(shell portageq envvar PORTDIR) FNAMES = cross-emerge cross-fix-root cross-pkg-config emerge-wrapper SITEDIR = $(PREFIX)/share/crossdev/include/site +ETC_SITEDIR = $(EPREFIX)/etc/crossdev/include/site all: install: - $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/bin/ $(DESTDIR)$(SITEDIR) + $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/bin/ $(DESTDIR)$(SITEDIR) $(DESTDIR)$(ETC_SITEDIR) + $(INSTALL_DATA) README $(DESTDIR)$(ETC_SITEDIR) + sed -i -e s:@PREFIX@:$(PREFIX):g $(DESTDIR)$(ETC_SITEDIR)/README $(INSTALL_EXEC) $(FNAMES) $(DESTDIR)$(PREFIX)/bin/ sed -i -e "s:@GENTOO_PORTAGE_EPREFIX@:$(EPREFIX):g" $(DESTDIR)$(PREFIX)/bin/cross-emerge sed -i -e "s:@GENTOO_PORTAGE_EPREFIX@:$(EPREFIX):g" $(DESTDIR)$(PREFIX)/bin/emerge-wrapper @@ -19,6 +22,7 @@ install: cp -a site $(DESTDIR)$(PREFIX)/share/crossdev/include/ sed -i -e s:@PREFIX@:$(PREFIX):g $(DESTDIR)$(PREFIX)/bin/emerge-wrapper sed -i -e s:@SITEDIR@:$(SITEDIR):g $(DESTDIR)$(SITEDIR)/config.site + sed -i -e s:@ETC_SITEDIR@:$(ETC_SITEDIR):g $(DESTDIR)$(SITEDIR)/config.site mv $(DESTDIR)$(SITEDIR)/config.site $(DESTDIR)$(PREFIX)/share/ ln -sf $(PORTDIR)/profiles/embedded $(DESTDIR)$(PREFIX)/share/crossdev/etc/portage/make.profile |