Yes, I thought so too... very elegant, except... sort does not like a long list... darn it
make.exe: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mark Galeck (CW) Sent: Friday, February 05, 2010 12:00 AM To: [email protected] Subject: RE: how to allow multiple empty commands? Well, with Eric's suggestion as a starting point, I came up with the following solution (to my possibly nonexisting problem) to make sure each header file is given an empty command once: make a list of header files! Any time a header file is encountered, I do INCL_PATHS+=foobar/foobar.h Then some time later in the main makefile, I do UNIQ_INCL_PATHS = $(sort $(INCL_PATHS)) $(UNIQ_INCL_PATHS):; $(UNIQ_INCL_PATHS): (the last one is to handle include file deletions) This seems very elegant and efficient to me, thank you everybody. Mark _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
