pre fanusikov make

Milan B. milan na bastl.sk
Čtvrtek Květen 9 15:03:55 CEST 2013


On 5/9/2013 2:26 PM, Jan Waclawek wrote:

Nechcem kazit rozbiehajucu sa hadankarsku sutaz, ale stvorpismenova 
skratka pozostavajuca z pismen S a C by mohla byt odpovedou.

-m-

> Co je zle na tomto makefile? Tabulatory su tam, kde treba. Preco nestaci
> napisat "make", a musim napisat "make s.bin" aby mi to vyrobilo ten s.bin?
> Ak do TARGET dam nieco ine, napr. "TARGET=t", tak "make" vytvori bez reci
> t.bin.
>
> (Podotykam, ze som to sam nedokazal vyriesit, musel mi napovedat kolega).
>
> wek
>
>
>
> -----
>
> TARGET=s
>
> all: bin
>
> bin: $(TARGET).bin
>
> %.bin :
> 	@echo "Making $@"
> 	@echo $@ > $@
>
> -----
>
> c:\wek\SMO\tmp\tmp>make --version
> GNU Make 3.81
> Copyright (C) 2006  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
>
> This program built for i386-pc-mingw32
>
> c:\wek\SMO\tmp\tmp>cat makefile
> TARGET=s
>
> all: bin
>
> bin: $(TARGET).bin
>
> %.bin :
>          @echo "Making $@"
>          @echo $@ > $@
>
>
> c:\wek\SMO\tmp\tmp>make
> make: *** No rule to make target `s.bin', needed by `bin'.  Stop.
>
> c:\wek\SMO\tmp\tmp>make s.bin
> Making s.bin
>
> c:\wek\SMO\tmp\tmp>
>
>
> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list



Další informace o konferenci Hw-list