diff options
author | 2008-10-29 01:12:27 -0400 | |
---|---|---|
committer | 2008-10-29 01:12:27 -0400 | |
commit | 0e558f99739e074a3d2198ae641276ddf10d0d9a (patch) | |
tree | 6af8c61d5eb6d0302bfcfa9443904f80c828125a /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 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -1,13 +1,18 @@ # Copyright 2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -DESTDIR ?= / -PREFIX ?= /usr +include settings.mk all: - @: install: - @mkdir -p $(DESTDIR)/$(PREFIX)/bin/ - cp crossdev $(DESTDIR)/$(PREFIX)/bin/ - @cd wrappers ; $(MAKE) DESTDIR=$(DESTDIR) PREFIX=$(PREFIX) install + $(INSTALL_DIR) $(DESTDIR)/$(PREFIX)/bin/ + $(INSTALL_EXEC) crossdev $(DESTDIR)/$(PREFIX)/bin/ + $(MAKE) -C wrappers install + +P = crossdev-`date +%Y%m%d` +dist: + git archive --prefix=$(P)/ HEAD > $(P).tar + -lzma -f $(P).tar + +.PHONY: all dist install |