From patchwork Thu Jan 5 07:07:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Erickson X-Patchwork-Id: 134435 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "maxx.shmoo.com", Issuer "CA Cert Signing Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 10264B6FAF for ; Thu, 5 Jan 2012 18:08:12 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id CC4799C1ED; Thu, 5 Jan 2012 02:08:07 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mW5F9b9iWVcW; Thu, 5 Jan 2012 02:08:07 -0500 (EST) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 786F19D245; Thu, 5 Jan 2012 02:08:02 -0500 (EST) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E065B9C1ED for ; Thu, 5 Jan 2012 02:08:00 -0500 (EST) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wB4sZNsy1qkt for ; Thu, 5 Jan 2012 02:07:57 -0500 (EST) Received: from mail-tul01m020-f172.google.com (mail-tul01m020-f172.google.com [209.85.214.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 1BF969D247 for ; Thu, 5 Jan 2012 02:07:54 -0500 (EST) Received: by obcuz6 with SMTP id uz6so398679obc.17 for ; Wed, 04 Jan 2012 23:07:53 -0800 (PST) Received: by 10.50.156.138 with SMTP id we10mr1465051igb.10.1325747273420; Wed, 04 Jan 2012 23:07:53 -0800 (PST) Received: from localhost.localdomain (74-93-5-105-SFBA.hfc.comcastbusiness.net. [74.93.5.105]) by mx.google.com with ESMTPS id t5sm110589523igb.4.2012.01.04.23.07.52 (version=SSLv3 cipher=OTHER); Wed, 04 Jan 2012 23:07:52 -0800 (PST) From: Grant Erickson To: hostap@lists.shmoo.com, Jouni Malinen Subject: [PATCH] build: fix install target parent directory prerequisites Date: Wed, 4 Jan 2012 23:07:40 -0800 Message-Id: <1325747260-31656-1-git-send-email-marathon96@gmail.com> X-Mailer: git-send-email 1.7.8.2 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com This changes the install target such that parent directories of installed paths area created and each path is only installed on a dependency basis. Signed-off-by: Grant Erickson --- wpa_supplicant/Makefile | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 0832f10..7426aa6 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -48,9 +48,10 @@ mkconfig: echo CONFIG_DRIVER_HOSTAP=y >> .config echo CONFIG_DRIVER_WEXT=y >> .config -install: all - mkdir -p $(DESTDIR)$(BINDIR) - for i in $(ALL); do cp $$i $(DESTDIR)$(BINDIR)/$$i; done +$(DESTDIR)$(BINDIR)/%: % + install -D $(<) $(@) + +install: $(addprefix $(DESTDIR)$(BINDIR)/,$(ALL)) $(MAKE) -C ../src install OBJS = config.o