[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help converting a clearmake syntax over to gnu make
From: |
Paul D. Smith |
Subject: |
Re: Help converting a clearmake syntax over to gnu make |
Date: |
Wed, 3 Dec 2003 10:28:05 -0500 |
%% Leoj Naws <address@hidden> writes:
ln> Most of them do not need any conversion at all but a
ln> few have a substitution macro which I just can't seem
ln> to convert over to using gnu make's syntax. I have
ln> made a simple version of one of the makefiles which
ln> shows the construct. I have also included the
ln> clearmake & gnu make output.
ln> The target / macro in problem looks like this:
ln> $(DERIVED_DIRS:=/.touch): $$(@:/.touch=)
The $$@ syntax is not standard (although various SystemV based versions
of make support it).
GNU make supports that syntax starting with version 3.80, but even that
version doesn't support substitutions on it like this.
ln> $(DERIVED_DIRS:=/.touch): $$(@:/.touch=)
ln> @echo "TOUCH $@ "
See the GNU make manual for GNU make 3.79; there's a section there on
"Missing Features and Incompatibilities" and the solutionthey give for
the $$@ feature is what you Want: static pattern rules:
$(DERIVED_DIRS:=/.touch) : %/.touch : %
@echo "TOUCH $@ "
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist