Le mercredi 1 avril 2015, 20:38:30 Dmitry Smirnov a écrit :
> Hmm, how about doing it gnu-make-style?
I tried that too, but this doesn't work as I expected ("Only the first ‘%’ in
the pattern and replacement is treated this way; any subsequent ‘%’ is
unchanged." from the manual)
--
icons := $(patsubst
linux/icons/tyrian-%.png,debian/opentyrian/usr/share/icons/hicolor/%x%/apps/opentyrian.png,$(wildcard
linux/icons/tyrian-*.png))
debian/opentyrian/usr/share/icons/hicolor/%x%/apps/opentyrian.png:
linux/icons/tyrian-%.png
install -D --mode=644 --preserve-timestamps $< $@
override_dh_install: $(icons)
dh_install
> Please note that in make files "make" is usually spelled as "$(MAKE)".
Oops, I overloked that.
I had to add even more boilerplate to make parallel build actually work.
signature.asc
Description: This is a digitally signed message part.

