source: debwrt/trunk/debian/package/debwrt-kernel-headers/debian/rules @ 52

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

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

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4# This file was originally written by Joey Hess and Craig Small.
5# As a special exception, when this file is copied by dh-make into a
6# dh-make output file, you may use that output file without restriction.
7# This special exception was added by Craig Small in version 0.37 of dh-make.
8
9# Uncomment this to turn on verbose mode.
10export DH_VERBOSE=1
11
12SUBDIR=$(shell basename $(CURDIR))
13DESTDIR=$(CURDIR)/debian/debwrt-kernel-headers
14
15configure: configure-stamp
16configure-stamp:
17        dh_testdir
18        # Add here commands to configure the package.
19
20        touch configure-stamp
21
22
23build: build-stamp
24
25build-stamp: configure-stamp 
26        dh_testdir
27
28        # Add here commands to compile the package.
29        #$(MAKE)
30        #docbook-to-man debian/debwrt-kernel-headers.sgml > debwrt-kernel-headers.1
31
32        touch $@
33
34clean: 
35        dh_testdir
36        dh_testroot
37        rm -f build-stamp configure-stamp
38
39        # Add here commands to clean up after the build process.
40        #$(MAKE) clean
41
42        dh_clean
43
44install: build
45        dh_testdir
46        dh_testroot
47        dh_clean -k
48        dh_installdirs
49        mkdir -p $(DESTDIR)/usr/src/
50        cp -ra linux-headers-* $(DESTDIR)/usr/src/
51        ln -s linux-headers-* $(DESTDIR)/usr/src/linux
52
53        # to make kernel headers: make ARCH=mips menuconfig
54
55# Build architecture-independent files here.
56binary-indep: build install
57# We have nothing to do by default.
58
59# Build architecture-dependent files here.
60binary-arch: build install
61        dh_testdir
62        dh_testroot
63        dh_installchangelogs
64#       dh_installdocs
65#       dh_installexamples
66#       dh_install
67#       dh_installmenu
68#       dh_installdebconf       
69#       dh_installlogrotate
70#       dh_installemacsen
71#       dh_installpam
72#       dh_installmime
73#       dh_python
74#       dh_installinit
75#       dh_installcron
76#       dh_installinfo
77#       dh_installman
78        dh_link
79        dh_strip
80        dh_compress
81        dh_fixperms
82#       dh_perl
83#       dh_makeshlibs
84        dh_installdeb
85        dh_shlibdeps
86        dh_gencontrol
87        dh_md5sums
88        dh_builddeb
89
90binary: binary-indep binary-arch
91.PHONY: build clean binary-indep binary-arch binary install configure
Note: See TracBrowser for help on using the repository browser.