Hello Paul et al., I'm familiar with target-specific variables and have been using them for many years.
But they don't seem to be doing what I want in one circumstance -- I want to build different target names depending on an inherited target-specific variable. For example EXESUFF =# blank to start a$(EXESUFF).o : a.cpp <tab> $(CXX) $(CXXFLAGS) -c $< -o $@ OBJS = a$(EXESUFF).o b$(EXESUFF).out : $(OBJS) <tab> $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ all: b.out clean: <tab> /bin/rm *.o *.out test: EXESUFF = _test test: CXXFLAGS += -D__TEST__ % make all (builds a.o and b.out) % make clean; make test (builds a.o and b.out -- but I want it to build a_test.o and b_test.out) Is there a way to do what I want? Thanks, Ted _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make