Re: Problems with build target
> The reason is that inside of debian/rules a stamp-file is used
> to indicate that the build process was successful. Unfortunately
> this stamp-file is called 'build' - similar to the target I have
> to use
That's what the .PHONY: target is for:
---
bash-2.01$ cat rules
build:
touch build
.PHONY: build
bash-2.01$ ls -l
total 1
-rw-r--r-- 1 phil phil 37 Mar 21 16:37 rules
bash-2.01$ make -f rules build
touch build
bash-2.01$ ls -l
total 1
-rw-r--r-- 1 phil phil 0 Mar 21 16:37 build
-rw-r--r-- 1 phil phil 37 Mar 21 16:37 rules
bash-2.01$ make -f rules build
touch build
bash-2.01$ ls -l
total 1
-rw-r--r-- 1 phil phil 0 Mar 21 16:38 build
-rw-r--r-- 1 phil phil 37 Mar 21 16:37 rules
bash-2.01$
---
It makes make ignore files of the same name as a .PHONY: dependent.
Cheers, Phil.
--
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: