Re: Bug with repeated instances of per-target variable assignment

2000-10-05 Thread Paul D. Smith
%% "David Zuhn" <[EMAIL PROTECTED]> writes: dz> INCS = -Iblorch dz> foo.o: INCS += -Ifoo dz> foo.o: INCS += -Ibar dz> foo.o: INCS += -Ibaz dz> foo.o: foo.c dz> $(CC) $(INCS) -c $< -o $@ dz> when I run a 'make', the command contains -Iblorch -Ibaz, with no dz> reference to the

Bug with repeated instances of per-target variable assignment

2000-09-27 Thread David Zuhn
This is GNU make 3.79.1, running on Solaris 2.6. Using this Makefile (tabs may be lost in the mail) CC = gcc INCS = -Iblorch foo.o: INCS += -Ifoo foo.o: INCS += -Ibar foo.o: INCS += -Ibaz foo: foo.o $(CC) $(LIBS) $^ -o $@ foo.o: foo.c $(CC) $(INCS) -c $< -o $@ foo.c: