source: debwrt/trunk/debian/package/libnl/build.mk @ 52

Last change on this file since 52 was 52, checked in by amain, 13 years ago

Fix makefile dependancy problems and include libnl.so in debian package

File size: 1.8 KB
Line 
1# DebWrt - Debian on Embedded devices
2#
3# Copyright (C) 2010 Johan van Zoomeren <amain@debwrt.net>
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18debian/package/libnl: debian/package/libnl/deliver
19        touch $@
20
21debian/package/libnl/deliver: debian/package/libnl/build
22        mkdir -p ${INSTALL_DIR_DEBIAN_PACKAGES}
23        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl/*.deb ${INSTALL_DIR_DEBIAN_PACKAGES}
24        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl/*.dsc ${INSTALL_DIR_DEBIAN_PACKAGES}
25        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl/*.changes ${INSTALL_DIR_DEBIAN_PACKAGES}
26        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/libnl/*.tar.gz ${INSTALL_DIR_DEBIAN_PACKAGES}
27        touch $@
28
29debian/package/libnl/build: debian/package/libnl/prepare debian/package/debwrt-kernel-headers
30        #exit 1
31        $(CHROOT_USER) bash -c "cd /usr/src/libnl; export ARCH=$(TARGET_ARCH); ./libnl.sh"
32        touch $@
33
34debian/package/libnl/prepare: debian/buildenv/create
35        rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/libnl
36        mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/libnl
37        cp -ar $(DEBIAN_PACKAGES_DIR)/libnl/debian   $(DEBIAN_BUILD_DIR)/usr/src/libnl
38        cp -ar $(DEBIAN_PACKAGES_DIR)/libnl/libnl.sh $(DEBIAN_BUILD_DIR)/usr/src/libnl
39        touch $@
40
41debian/package/libnl/clean:
42        rm -f debian/package/libnl/build
43        rm -f debian/package/libnl/prepare
44        rm -f debian/package/libnl/deliver
Note: See TracBrowser for help on using the repository browser.