From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Mon, 19 Mar 2012 11:20:26 +0100 Subject: [Buildroot] [PATCH] vnstat: new package In-Reply-To: References: <1332150485-22293-1-git-send-email-alvaro.gamez@hazent.com> <20120319105120.7dcafd10@skate> Message-ID: <20120319112026.592985ee@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Le Mon, 19 Mar 2012 11:10:55 +0100, Alvaro Gamez a ?crit : > I see, but then essentially I would have to copy, paste and reformat the > original Makefile into vnstat.mk Isn't that a bit redundant? No, no. You don't have to replicate the project Makefile. You would just to something like: define VNSTAT_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) endef define VNSTAT_INSTALL_TARGET_CMDS $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install endef You can also see other examples in the Buildroot code. Regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com