From owner-freebsd-questions Mon May 29 13:30:28 2000 Delivered-To: freebsd-questions@freebsd.org Received: from po4.wam.umd.edu (po4.wam.umd.edu [128.8.10.166]) by hub.freebsd.org (Postfix) with ESMTP id 4935837BD42 for ; Mon, 29 May 2000 13:30:18 -0700 (PDT) (envelope-from gollucci@wam.umd.edu) Received: from rac9.wam.umd.edu (root@rac9.wam.umd.edu [128.8.10.149]) by po4.wam.umd.edu (8.9.3/8.9.3) with ESMTP id QAA17450 for ; Mon, 29 May 2000 16:30:23 -0400 (EDT) Received: from rac9.wam.umd.edu (sendmail@localhost [127.0.0.1]) by rac9.wam.umd.edu (8.9.3/8.9.3) with SMTP id QAA22151 for ; Mon, 29 May 2000 16:30:13 -0400 (EDT) Received: from localhost (gollucci@localhost) by rac9.wam.umd.edu (8.9.3/8.9.3) with ESMTP id QAA22147 for ; Mon, 29 May 2000 16:30:13 -0400 (EDT) X-Authentication-Warning: rac9.wam.umd.edu: gollucci owned process doing -bs Date: Mon, 29 May 2000 16:30:13 -0400 (EDT) From: "Philip M. Gollucci" To: freebsd-questions@FreeBSD.ORG Subject: FreeBSD's Make utility Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Does anyone know how to in a FreeBSD Makefile get the date and store it in a variable. i.e. Makefile: #!/bin/sh CPP = g++ CPPFLAGS = -Wall -O3 -I$(INC1) NAME = test OBJS = test.o DATE = ##### targets: date: $(DATE) = date all: $(CPP) $(CPPFLAGS) -o $(NAME)_$(DATE) $(OBJS) ### endof file Thanks in advace Philip ***************************************************************************** Philip M. Gollucci E-mail : Philip@p6m7g8.com Phone : 301.226.5280 WebSite : http://www.p6m7g8.com ***************************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message