nested ifeq in debian/rules (makefile)
I'm new to debian mentors. A while ago I read a blog article about how
to use only one branch for debian and ubuntu packages with different
I tried to implement it, but I'm struggling.
Essentially, I'm not familiar with makefile syntax, and searching
makefile tutorials and asking in IRC chats helped, but couldn't fully
solve the problems I faced.
So, I hope the experts here can help find a good solution.
Here is what I have so far:
But it basically boils down to the following behavior, which I don't
$ cat makefile
@echo $(shell [ -e /etc/dpkg/origins/default ]; printf $$?)
@echo $(shell [ -e /etc/dpkg/origins/dabadabadu ]; printf $$?)
@echo $(shell [ ! -e /etc/dpkg/origins/default ]; printf $$?)
@echo $(shell [ ! -e /etc/dpkg/origins/dabadabadu ]; printf $$?)
ifeq ( $(shell [ -e /etc/dpkg/origins/default ]; printf $$?), 0)
ifeq ( $(shell dpkg-vendor --derives-from Ubuntu && echo yes), yes)
@echo "ubuntu maverick"
@echo "debian squeeze"
@echo "debian lenny"