source: debwrt/trunk/debian/package/nvram/debian/rules @ 84

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

Add nvram debian package

  • Property svn:executable set to *
File size: 1003 bytes
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
12DEB_HOST_GNU_TYPE?=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
13CC=$(DEB_HOST_GNU_TYPE)-gcc
14export CC
15
16%:
17        dh $@ 
18
19build: 
20        dh_testdir
21        dh_auto_configure
22
23        $(MAKE) -C src
24
25        dh_auto_test
26
27override_dh_auto_install:
28        install -d debian/nvram/usr/sbin
29        install -d debian/libnvram/usr/lib
30        install -o root -g root -m 755 src/nvram debian/nvram/usr/sbin/nvram
31        install -o root -g root -m 644 src/libnvram.so.0.1 debian/libnvram/usr/lib/libnvram.so.0.1
32        ln -snf libnvram.so.0.1 debian/libnvram/usr/lib/libnvram.so
33
34override_dh_auto_clean:
35        rm -f src/nvram src/libnvram* src/*.o
36
Note: See TracBrowser for help on using the repository browser.