Results 1 to 1 of 1
Code:
OBJDIR=/dsk1/sthakkar/
EXE=
objs = ex.o
TARGETS= ex$(EXE)
all: $(TARGETS)
ass_tc_begin:
@echo ass_tc_begin
ass_tc_fail:
@echo ass_tc_fail
ass_tc_end:
@echo ass_tc_end
ex$(EXE): $(addprefix $(OBJDIR), $(objs))
@make ass_tc_begin
gcc ex.c -o ex || ...
- 08-22-2007 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 59
Error: No rule to make target
When I do 'make all', it gives me the following error:Code:OBJDIR=/dsk1/sthakkar/ EXE= objs = ex.o TARGETS= ex$(EXE) all: $(TARGETS) ass_tc_begin: @echo ass_tc_begin ass_tc_fail: @echo ass_tc_fail ass_tc_end: @echo ass_tc_end ex$(EXE): $(addprefix $(OBJDIR), $(objs)) @make ass_tc_begin gcc ex.c -o ex || @make ass_tc_fail @make ass_tc_end
make[1]: *** No rule to make target `ass_tc_begin'. Stop.
When I run 'make ass_tc_begin', it gives me the proper output. I don;t understand where the Makefile is going wrong?


Reply With Quote