From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0AAD21391DB for ; Sun, 16 Mar 2014 18:09:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07D4EE0A02; Sun, 16 Mar 2014 18:09:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 50B5AE09F8 for ; Sun, 16 Mar 2014 18:09:47 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4759D33FBCD for ; Sun, 16 Mar 2014 18:09:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id A4974188EB for ; Sun, 16 Mar 2014 18:09:44 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1394992802.e8bf352d60c5ea83d09a294fe217c905b176d5a2.floppym@gentoo> Subject: [gentoo-commits] proj/python-updater:master commit in: / X-VCS-Repository: proj/python-updater X-VCS-Files: Makefile python-updater python-updater.in X-VCS-Directories: / X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: e8bf352d60c5ea83d09a294fe217c905b176d5a2 X-VCS-Branch: master Date: Sun, 16 Mar 2014 18:09:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 8d178792-bfbd-4837-b2ae-e86dab7cd8c7 X-Archives-Hash: 6e1dd1a832dda137147276685787f5b0 commit: e8bf352d60c5ea83d09a294fe217c905b176d5a2 Author: Mike Gilbert gentoo org> AuthorDate: Sun Mar 16 17:44:34 2014 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Sun Mar 16 18:00:02 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/python-updater.git;a=commit;h=e8bf352d Add an install target to the Makefile --- Makefile | 27 ++++++++++++++++++++------- python-updater => python-updater.in | 0 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 30d33b8..a723c79 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,34 @@ # Makefile for python-updater MAN_INCLUDE=man.include VERSION=$(shell ./python-updater -V) -FILES=AUTHORS python-updater python-updater.1 +FILES=AUTHORS Makefile $(MAN_INCLUDE) python-updater.in python-updater.1 PKGDIR=python-updater-$(VERSION) TARBALL=$(PKGDIR).tar.bz2 +INSTALL ?= install +sbindir = $(EPREFIX)/usr/sbin +mandir = $(EPREFIX)/usr/share/man -all: python-updater.1 tarball +all: python-updater python-updater.1 -python-updater.1: python-updater $(MAN_INCLUDE) +python-updater: python-updater.in + sed -e "s:@GENTOO_PORTAGE_EPREFIX@:$(EPREFIX):g" $^ > $@ + chmod +x $@ + +python-updater.1: $(MAN_INCLUDE) help2man -L C -Ni $(MAN_INCLUDE) ./python-updater -o $@ sed -i -e 's/ in the manpage//' \ -e 's/\*[[:space:]]\([[:alpha:]]*\).*/\1 /' $@ -.PHONY: all clean tarball upload -clean: - rm -fr python-updater.1 *.bz2 $(PKGDIR) || true -tarball: $(FILES) +install: python-updater python-updater.1 + $(INSTALL) -d $(DESTDIR)$(sbindir) + $(INSTALL) -m0755 python-updater $(DESTDIR)$(sbindir) + $(INSTALL) -d $(DESTDIR)$(mandir)/man1 + $(INSTALL) -m0644 python-updater.1 $(DESTDIR)$(mandir)/man1 + +.PHONY: all clean tarball upload install +clean: python-updater + rm -fr python-updater python-updater.1 *.bz2 $(PKGDIR) || true +tarball: $(FILES) python-updater mkdir -p $(PKGDIR) cp $(FILES) $(PKGDIR) tar -cjf $(TARBALL) $(PKGDIR) diff --git a/python-updater b/python-updater.in old mode 100755 new mode 100644 similarity index 100% rename from python-updater rename to python-updater.in