[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Makefile help!
From: |
karl |
Subject: |
Re: Makefile help! |
Date: |
Sun, 20 Oct 2019 13:14:39 +0200 (CEST) |
foxfanfare:
> Karl Hammar wrote
> > piano-solo.%.pdf: piano-solo.%.ly \
> > $(general) \
> > dialogs.%.ily \
> > global.%.ily \
> > notes.piano-solo.%.ily \
> > pedals.%.ily
> > ...
>
> Little update for those interested by that problem, actually, that solution
> doesn't work properly. In that example, the problem I have with the % sign
> is that it doesn't seem to apply correctly to any of the dependencies,
> except the first one which share the same name with the target. So if I
> update a dependency (like dialogs.01.ily), make will not recompile
> piano-solo.01.pdf. It only works when updating piano-solo.01.ly ...
$ cat z
#!/bin/sh
touch tt.ly
for i in 01 02 03
do
touch piano-solo.$i.pdf piano-solo.$i.ly dialogs.$i.ily global.$i.ily
notes.piano-solo.$i.ily pedals.$i.ily
done
$ cat Makefile
general := tt.ly
piano-solo.%.pdf: piano-solo.%.ly $(general) dialogs.%.ily global.%.ily
notes.piano-solo.%.ily pedals.%.ily
@touch $@; echo makeing $@
$ ls -l
total 8
-rw-r--r-- 1 karl users 154 Oct 20 13:07 Makefile
-rw-r--r-- 1 karl users 0 Oct 20 13:10 dialogs.01.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 dialogs.02.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 dialogs.03.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 global.01.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 global.02.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 global.03.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 notes.piano-solo.01.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 notes.piano-solo.02.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 notes.piano-solo.03.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 pedals.01.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 pedals.02.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 pedals.03.ily
-rw-r--r-- 1 karl users 0 Oct 20 13:10 piano-solo.01.ly
-rw-r--r-- 1 karl users 0 Oct 20 13:10 piano-solo.02.ly
-rw-r--r-- 1 karl users 0 Oct 20 13:10 piano-solo.03.ly
-rw-r--r-- 1 karl users 0 Oct 20 13:10 tt.ly
-rwxr-xr-x 1 karl users 157 Oct 20 13:06 z
$ for i in tt.ly *01*ly; do echo $i; touch $i; make piano-solo.01.pdf; done
tt.ly
makeing piano-solo.01.pdf
dialogs.01.ily
makeing piano-solo.01.pdf
global.01.ily
makeing piano-solo.01.pdf
notes.piano-solo.01.ily
makeing piano-solo.01.pdf
pedals.01.ily
makeing piano-solo.01.pdf
piano-solo.01.ly
makeing piano-solo.01.pdf
$
Soo... works here.
Regards,
/Karl Hammar
- Re: Makefile help!, (continued)
- Re: Makefile help!, karl, 2019/10/16
- Re: Makefile help!, foxfanfare, 2019/10/17
- Re: Makefile help!, foxfanfare, 2019/10/17
- Re: Makefile help!, foxfanfare, 2019/10/19
- Re: Makefile help!, karl, 2019/10/20
- Re: Makefile help!, foxfanfare, 2019/10/20
- Re: Makefile help!, foxfanfare, 2019/10/20
- Re: Makefile help!, karl, 2019/10/20
- Re: Makefile help!, karl, 2019/10/20
Re: Makefile help!, foxfanfare, 2019/10/20
- Re: Makefile help!,
karl <=