From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Tue, 1 Dec 2015 22:45:06 +0100 Subject: [Buildroot] [PATCH v6] package/unscd: new package In-Reply-To: <565E130B.7090201@mind.be> References: <1448982954-5055-1-git-send-email-rdkehn@yahoo.com> <565E130B.7090201@mind.be> Message-ID: <20151201224506.6555d6b5@free-electrons.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Arnout Vandecappelle, On Tue, 1 Dec 2015 22:37:15 +0100, Arnout Vandecappelle wrote: > > +define UNSCD_EXTRACT_CMDS > > + cp $(DL_DIR)/$($(PKG)_SOURCE) $(@D)/nscd.c > > +endef > > + > > +define UNSCD_BUILD_CMDS > > + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) nscd > > Although it works because of the default rules, it looks very strange to me to > call make when there is no Makefile. I would instead call the compiler directly: > > cd $(@D); \ > $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o nscd nscd.c > > What do the others think? Fully agree with you. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com