source: debwrt/trunk/debian/package/debwrt-kernel-headers/build.mk @ 199

Last change on this file since 199 was 199, checked in by stappers, 12 years ago

Introducing DEBWRT_PKGLST

this adds the variable DEBWRT_PKGLST in various make files
in and under the debian/package directory

File size: 2.6 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
18DEBWRT_KERNEL_HEADERS_VERSION:=2.6.36.2
19
20DEBWRT_PKGLST:=$(DEBWRT_PKGLST) debian/package/debwrt-kernel-headers
21
22debian/package/debwrt-kernel-headers: debian/package/debwrt-kernel-headers/deliver
23        touch $@
24
25debian/package/debwrt-kernel-headers/deliver: debian/package/debwrt-kernel-headers/build
26        mkdir -p ${INSTALL_DIR_DEBIAN_PACKAGES}
27        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers/*.deb ${INSTALL_DIR_DEBIAN_PACKAGES}
28        #cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers/*.tar.gz ${INSTALL_DIR_DEBIAN_PACKAGES}
29        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers/*.changes ${INSTALL_DIR_DEBIAN_PACKAGES}
30        #cp -rav $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers/*.dsc ${INSTALL_DIR_DEBIAN_PACKAGES}
31        touch $@
32
33debian/package/debwrt-kernel-headers/build: debian/package/debwrt-kernel-headers/prepare
34        $(CHROOT_USER) bash -c "cd /usr/src/debwrt-kernel-headers; export ARCH=$(TARGET_ARCH); ./debwrt-kernel-headers.sh"
35        touch $@
36
37debian/package/debwrt-kernel-headers/prepare: debian/buildenv/create
38        rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers
39        mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers
40        cp -ar $(DEBIAN_PACKAGES_DIR)/debwrt-kernel-headers/debian   $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers
41        cp -ar $(DEBIAN_PACKAGES_DIR)/debwrt-kernel-headers/debwrt-kernel-headers.sh  $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers
42        if [ -f $(INSTALL_DIR)/$(HEADERS_TAR_GZ) ]; then \
43                cp $(INSTALL_DIR)/$(HEADERS_TAR_GZ) $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers; \
44        else \
45                cp $(DEBIAN_PACKAGES_DIR)/debwrt-kernel-headers/debwrt-headers-*.tar.gz $(DEBIAN_BUILD_DIR)/usr/src/debwrt-kernel-headers; \
46        fi
47        touch $@
48
49debian/package/debwrt-kernel-headers/clean:
50        rm -f debian/package/debwrt-kernel-headers/build
51        rm -f debian/package/debwrt-kernel-headers/prepare
52        rm -f debian/package/debwrt-kernel-headers/deliver
53
Note: See TracBrowser for help on using the repository browser.