Re: nested ifeq in debian/rules (makefile)
Richard Ulrich <richi@paraeasy.ch> wrote on 2011-03-02 22:13:
> ifeq ( $(shell [ -e /etc/dpkg/origins/default ]; printf $$?), 0)
> ifeq ( $(shell dpkg-vendor --derives-from Ubuntu && echo yes), yes)
> @echo "ubuntu maverick"
> else
> @echo "debian squeeze"
> endif
> else
> @echo "debian lenny"
> endif
I had the same problem some weeks ago. The solution is:
ifeq ($(shell dpkg-vendor --is Ubuntu && echo yes),yes)
...
endif
ifeq ($(shell dpkg-vendor --is Debian && echo yes),yes)
...
endif
---
Have a nice day.
Joachim (Germany)
Reply to: