3 export CC
= mipsel-linux-gcc
4 export TARGET
= mips-le-elf
5 export TOOLPREFIX
= mipsel-linux-
6 export CROSS_COMPILE
= mipsel-linux-
10 mandir = /usr
/share
/man
12 destdir
= $(CURDIR
)/debian
/prometheus
13 docdir
= /usr
/share
/doc
15 ifneq (,$(findstring noopt
,$(DEB_BUILD_OPTIONS
)))
25 mipsel-linux-gcc
-o
$(CURDIR
)/prometheus
$(CURDIR
)/prometheus.c
26 # $(CC) -o $(CURDIR)/prometheus-stats $(CURDIR)/optional-tools/prometheus-stats.c
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
59 # Build architecture-dependent files here.
60 binary-arch
: build
install
63 dh_installchangelogs CHANGELOG
80 mipsel-linux-strip
$(destdir
)$(bindir)/prometheus
87 cp debian
/control.DEBIAN debian
/prometheus
/DEBIAN
/control
93 .PHONY
: build
clean binary-arch binary
install