Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2000 16:30:13 -0400 (EDT)
From:      "Philip M. Gollucci" <gollucci@wam.umd.edu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   FreeBSD's Make utility
Message-ID:  <Pine.GSO.4.21.0005291625100.22076-100000@rac9.wam.umd.edu>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.21.0005291625100.22076-100000>