Hello
I inherited a Solaris Makefile and am converting it to run on Linux
gmake. I have a Makefile that includes the rule:
%.o : %.pl
$(CP) $< $*.o
@echo
(I changed it from a suffix to an implicit rule)
This rule simply renames a perl script. When I type make -r I get:
#--------------------------------------------------
# Building nvo_extract_flux
#--------------------------------------------------
# makeall = announce nvo_extract_flux
# SCRIPTS = nvo_extract_flux.pl
# script_exec = nvo_extract_flux
make: *** No rule to make target `.o', needed by `nvo_extract_flux'. Stop.
This is actually a complex program with large dir tree so there are some
includes that cause some of the output above. The point is that my
implicit rule is being ignored. Does my rule not say "take all .pl
files and create a .o file for eacho one?
When I type make I get:
#--------------------------------------------------
# Building nvo_extract_flux
#--------------------------------------------------
# makeall = announce nvo_extract_flux
# SCRIPTS = nvo_extract_flux.pl
# script_exec = nvo_extract_flux
cc -o .o
cc: no input files
make: *** [.o] Error 1
I believe make cant find a rule to apply to .pl, so it is just trying a
default cc command.
Any advice?
Thanx in advance.
--
Michael Harris
High Energy Astrophysics Division
Smithsonian Astrophysical Observatory
Cambridge, Massachusetts
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make
- Re: Ignored implicit rule Michael Harris
- Re: Ignored implicit rule Der Herr Hofrat
- Re: Ignored implicit rule Paul D. Smith