A small note: On Thu, Sep 23, 2004 at 01:36:40PM +0100, nikhil sharma wrote: > hi, > 1)this is my first mail ..i wanna know why the below > makefile works on solaris and not on linux..is ther > any solution through which without manually changing > makefile we can run this makefile without error on > linux. > > makefile is like: > > SOURCES=test_make.c test_make1.c > OBJS=$(SOURCES:%.c=%.o) > all:$(OBJS) > $(OBJS): > $(COMPILE.c) $<
"$<" should be empty on a rule without requirements, right? Anyway, this is basically a shell-script makefile: much simpler to write as a shell script. > clean: > rm -f test_make.o test_make1.o > > this is not working on solaris because target is > present but dependency is not present.. > if someone changed the gnu make code to work fr > that..then plz send me that version of make.. > > 2)i wanted the list of differences between solaris > make and gnu make ..because my project is somewhat > change the gnu make so that it should work as solaris > make.. Why? :-( Also: is the bsd make (pmake, on linux systems) closer to the solaris make? -- Tzafrir Cohen +---------------------------+ http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend| mailto:[EMAIL PROTECTED] +---------------------------+ _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/help-make
