-b Boot mode
[svn/Prometheus-QoS/.git] / debian / _mipsel / rules
1 #!/usr/bin/make -f
2
3 export CC = mipsel-linux-gcc
4 export TARGET = mips-le-elf
5 export TOOLPREFIX = mipsel-linux-
6 export CROSS_COMPILE = mipsel-linux-
7 CFLAGS = -Wall -g
8
9 bindir = /usr/sbin
10 mandir = /usr/share/man
11 sysconfdir = /etc
12 destdir = $(CURDIR)/debian/prometheus
13 docdir = /usr/share/doc
14
15 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
16 CFLAGS += -O0
17 else
18 CFLAGS += -O2
19 endif
20
21 build: build-stamp
22
23 build-stamp:
24 dh_testdir
25 mipsel-linux-gcc -o $(CURDIR)/prometheus $(CURDIR)/prometheus.c
26 # $(CC) -o $(CURDIR)/prometheus-stats $(CURDIR)/optional-tools/prometheus-stats.c
27
28 touch $@
29
30 clean: clean-dir
31
32 clean-dir:
33 dh_testdir
34 dh_testroot
35 rm -f build-stamp
36 make clean
37 dh_clean
38
39
40 install: build
41 dh_testdir
42 dh_testroot
43 dh_clean -k
44 dh_installdirs
45 install -m 755 -o root -g root $(CURDIR)/prometheus $(destdir)$(bindir)
46 # install -m 755 -o root -g root $(CURDIR)/prometheus-stats $(destdir)$(bindir)
47 install -m 644 -o root -g root $(CURDIR)/prometheus.1 $(destdir)$(mandir)/man1
48 install -m 644 -o root -g root $(CURDIR)/prometheus.conf.5 $(destdir)$(mandir)/man5
49 install -m 755 -o root -g root $(CURDIR)/conf/prometheus.init $(destdir)$(sysconfdir)/init.d/prometheus
50 install -m 644 -o root -g root $(CURDIR)/conf/prometheus.default $(destdir)$(sysconfdir)/default/prometheus
51 install -m 755 -o root -g root $(CURDIR)/conf/prometheus.cron $(destdir)$(sysconfdir)/cron.d/prometheus
52 install -m 600 -o root -g root $(CURDIR)/conf/prometheus.hosts $(destdir)$(sysconfdir)/prometheus/hosts
53 install -m 600 -o root -g root $(CURDIR)/conf/prometheus.conf $(destdir)$(sysconfdir)/prometheus/prometheus.conf
54 install -m 700 -o root -g root $(CURDIR)/check-kernel-qos $(destdir)$(sysconfdir)/prometheus
55 install -m 644 -o root -g root $(CURDIR)/README $(destdir)$(docdir)/prometheus
56 install -m 644 -o root -g root $(CURDIR)/CHANGELOG $(destdir)$(docdir)/prometheus
57
58
59 # Build architecture-dependent files here.
60 binary-arch: build install
61 dh_testdir
62 dh_testroot
63 dh_installchangelogs CHANGELOG
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 mipsel-linux-strip $(destdir)$(bindir)/prometheus
81 dh_compress
82 dh_fixperms
83 # dh_perl
84 # dh_makeshlibs
85 dh_installdeb
86 # dh_shlibdeps
87 cp debian/control.DEBIAN debian/prometheus/DEBIAN/control
88 # dh_gencontrol\
89 dh_md5sums
90 dh_builddeb
91
92 binary: binary-arch
93 .PHONY: build clean binary-arch binary install
This page took 0.340016 seconds and 4 git commands to generate.