From owner-freebsd-ports@freebsd.org Mon Jul 31 10:00:47 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ADB1DDCEF8C for ; Mon, 31 Jul 2017 10:00:47 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-pg0-x231.google.com (mail-pg0-x231.google.com [IPv6:2607:f8b0:400e:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 816E370A56 for ; Mon, 31 Jul 2017 10:00:47 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-pg0-x231.google.com with SMTP id y129so136299165pgy.4 for ; Mon, 31 Jul 2017 03:00:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=BGz+lMfHF9WwQuGUde2QCBwOHkq96diTPxEhVdmSKPI=; b=JrpevQ64S9zDJKcud/xve1/c3ZveSzvy2Q2QhswWxd/+qDV7ovuQPLnP5oiC3giTv0 rFWxOF8zDS9jDBsIKOCUNLhwjTrA5z9RvgyarManiGchrhFMGyU8MVGJZEAcsFi4QB+U oT2K4+dfqq4nlnMEXzswY3NA1cmTLb2VS666YfR0+NCzWPvvWJsxjkja/OpzBkQhzLA5 rWTkQ6LARavmygKQ6dUHA8YgQFGetuB5YTen32a2WhF8/9PY7Qp+bgf/OYiYikAb01Ni cvYIuN2fX7onaS7AHafjp9hqKnBparDl1x8LtDBRjipWTwRqyzka7Wdko2PukKvr++1b wCHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BGz+lMfHF9WwQuGUde2QCBwOHkq96diTPxEhVdmSKPI=; b=D3EKXEWPgAoCPnLBl/RwcRyDqnL2h/Hl93o+iEb9Z98QnFDrhpt20UyVoOAdQoni42 RoK1j3oEr6PVRitVi2+x37T/Eq/XN8e+zV/PwjPBWPcff29eguzXCxmDEYea/oFE71Zk 7KlCp5WbRgXw9e6HljaHMcGoB9s5HEPeCQVSqIefaf5S6w+VIwzjznzWEmOPtekouQEJ +w1xgHmGkqppyfYxjP7pPDeGkqlacGovSZv90vMIcecpOuMBJ6Ghp81RybLl4usxO3LD eT5dGzPGB7HNHxnkbYuMWD/L/0y1ndBfNakgWkMsLsNBIhU8TdeLcijTG0dQHsFiXTgi Xz/g== X-Gm-Message-State: AIVw112NwqyQWABb31a/fdfYfmh6vsGhGJFGcPb9qUYgZjD/JZmaGyRP oQKPAIO9Zd48bkpkYKgpx56HjDnonAdx X-Received: by 10.98.75.218 with SMTP id d87mr11018238pfj.135.1501495246697; Mon, 31 Jul 2017 03:00:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.181.226 with HTTP; Mon, 31 Jul 2017 03:00:46 -0700 (PDT) From: blubee blubeeme Date: Mon, 31 Jul 2017 18:00:46 +0800 Message-ID: Subject: GNU Makefile to FreeBSD Makefile To: FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2017 10:00:47 -0000 Hey guys I am trying to port some software to FreeBSD it uses GNU Makefile convention that uses these variables all over the place. https://stackoverflow.com/questions/3220277/what-do-the-makefile-symbols-and-mean I understand what they mean all: library.cpp main.cpp - $@ evaluates to all - $< evaluates to library.cpp - $^ evaluates to library.cpp main.cpp The question is, how do I remove those to just use the proper filenames? They are in the Makefile.am, here's an example line. src=`echo $< | sed 's,^.*/,,; s,\.dat$$,,'`; \ dst=`echo $@ | sed 's,^.*/,,; s,\.dat$$,,'`; \ Does anyone have experience with this that can give me some guidance on this? Best,