diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-29 01:12:27 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-10-29 01:12:27 -0400 |
commit | 0e558f99739e074a3d2198ae641276ddf10d0d9a (patch) | |
tree | 6af8c61d5eb6d0302bfcfa9443904f80c828125a /wrappers/Makefile | |
parent | git behaves odd to me. (diff) | |
download | crossdev-0e558f99739e074a3d2198ae641276ddf10d0d9a.tar.gz crossdev-0e558f99739e074a3d2198ae641276ddf10d0d9a.tar.bz2 crossdev-0e558f99739e074a3d2198ae641276ddf10d0d9a.zip |
cleanup makefiles and unify settings
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'wrappers/Makefile')
-rw-r--r-- | wrappers/Makefile | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/wrappers/Makefile b/wrappers/Makefile index 174a454..815a392 100644 --- a/wrappers/Makefile +++ b/wrappers/Makefile @@ -1,25 +1,23 @@ # Copyright 2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# -solar - -DESTDIR ?= / -PREFIX ?= /usr/local +include ../settings.mk PORTDIR ?= $(shell portageq envvar PORTDIR) FNAMES = cross-emerge cross-fix-root cross-pkg-config emerge-wrapper SITE = $(PREFIX)/share/crossdev/include/site -TOPDIR= +TOPDIR = all: - @: install: - mkdir -p $(DESTDIR)/$(PREFIX)/bin/ $(DESTDIR)/$(SITE) - cp $(FNAMES) $(DESTDIR)/$(PREFIX)/bin/ + $(INSTALL_DIR) $(DESTDIR)/$(PREFIX)/bin/ $(DESTDIR)/$(SITE) + $(INSTALL_EXEC) $(FNAMES) $(DESTDIR)/$(PREFIX)/bin/ cp -a etc $(DESTDIR)/$(PREFIX)/share/crossdev/ cp -a site $(DESTDIR)/$(PREFIX)/share/crossdev/include/ sed -i -e s@__PREFIX__@$(PREFIX)@g $(DESTDIR)/$(PREFIX)/bin/emerge-wrapper sed -i -e s@__TOPDIR__@$(SITE)@g $(DESTDIR)/$(SITE)/config.site mv $(DESTDIR)/$(SITE)/config.site $(DESTDIR)/$(PREFIX)/share/ - ( cd $(DESTDIR)/$(PREFIX)/share/crossdev/etc && ln -sf $(PORTDIR)/profiles/embedded make.profile ) + ln -sf $(PORTDIR)/profiles/embedded $(DESTDIR)/$(PREFIX)/share/crossdev/etc/make.profile + +.PHONY: all install |