Re: CDBS and DESTDIR
Hubert Chan wrote:
"Nelson" == Nelson A de Oliveira <firstname.lastname@example.org> writes:
Nelson> #!/usr/bin/make -f
Nelson> DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes
Nelson> DEB_DESTDIR = $(CURDIR)/debian/gff2aplot
Nelson> DEB_MAKE_CLEAN_TARGET := clean
Nelson> DEB_MAKE_INSTALL_TARGET := install DESTDIR=$(DEB_DESTDIR) prefix=$(DEB_DESTDIR)
Nelson> include /usr/share/cdbs/1/rules/simple-patchsys.mk
Nelson> include /usr/share/cdbs/1/rules/debhelper.mk
Nelson> include /usr/share/cdbs/1/class/makefile.mk
Nelson> include /usr/share/cdbs/1/class/perlmodule.mk
You should set your variables *after* your includes. e.g. perlmodule.mk
includes perlmodule-vars.mk, which re-sets DEB_MAKE_INSTALL_TARGET.
Hmmm... that was the problem. It's OK now! :-)
BTW, you don't have include makefile.mk if you include perlmodule.mk,
since perlmodule.mk automatically includes makefile.mk.
Right! More one I learned!
Thank you very much!