[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Axiom-developer] generalized makefile rules
From: |
David MENTRE |
Subject: |
Re: [Axiom-developer] generalized makefile rules |
Date: |
Thu, 14 Aug 2003 21:09:01 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.2 (gnu/linux) |
Hello Tim,
I've not checked (i.e. executed) but I would write:
root <address@hidden> writes:
> ${OUT}/FOO.o: ${MID}/FOO.NRLIB
> echo making ${OUT}/FOO.o from ${MID}/FOO.NRLIB
> cp ${MID}/FOO.NRLIB/code.o ${OUT}/FOO.o
${OUT}/%.o: ${MID}/%.NRLIB
echo making ${OUT}/$*.o from ${MID}/$*.NRLIB
cp ${MID}/$*.NRLIB/code.o ${OUT}/$*.o
or (shorter version):
${OUT}/%.o: ${MID}/%.NRLIB
echo making $@ from $<
cp ${MID}/$*.NRLIB/code.o $@
> ${MID}/FOO.NRLIB: ${MID}/FOO.spad
> echo making ${MID}/FOO.NRLIB from ${MID}/FOO.spad
> (cd ${MID} ; echo ')co FOO.spad' | ${INTERPSYS}
${MID}/%.NRLIB: ${MID}/%.spad
echo making ${MID}/$*.NRLIB from ${MID}/$*.spad
(cd ${MID} ; echo ")co $*.spad" | ${INTERPSYS}
Note: Beware of quotes, I've changed above ' by ".
Or shorter version:
${MID}/%.NRLIB: ${MID}/%.spad
echo making $@ from $<
(cd ${MID} ; echo ")co $*.spad" | ${INTERPSYS}
> I remember that there is a generalized replacement variable that
> matches the name of the expanding file but I don't know what it is.
%
Yours,
d.
--
address@hidden