source: subversion/applications/utils/tirex/Makefile @ 20995

Last change on this file since 20995 was 20554, checked in by jochen, 10 years ago

new program tirex-rendering-control to help with temporary shutdown of rendering

File size: 2.2 KB
Line 
1build: Makefile.perl
2        cd tirex-renderd; $(MAKE) $(MFLAGS)
3        $(MAKE) -f Makefile.perl
4
5Makefile.perl: Makefile.PL
6        perl Makefile.PL PREFIX=/usr DESTDIR=$(DESTDIR) FIRST_MAKEFILE=Makefile.perl
7        rm -f Makefile.perl.old
8
9install: build
10        install -m 755 -g root -o root -d $(DESTDIR)/usr/bin/
11        install -m 755 -g root -o root -d $(DESTDIR)/usr/share/tirex
12        install -m 755 -g root -o root -d $(DESTDIR)/usr/share/munin/plugins
13        install -m 755 -g root -o root bin/tirex-batch             $(DESTDIR)/usr/bin/
14        install -m 755 -g root -o root bin/tirex-send              $(DESTDIR)/usr/bin/
15        install -m 755 -g root -o root bin/tirex-master            $(DESTDIR)/usr/bin/
16        install -m 755 -g root -o root bin/tirex-renderd-starter   $(DESTDIR)/usr/bin/
17        install -m 755 -g root -o root bin/tirex-status            $(DESTDIR)/usr/bin/
18        install -m 755 -g root -o root bin/tirex-syncd             $(DESTDIR)/usr/bin/
19        install -m 755 -g root -o root bin/tirex-tiledir-check     $(DESTDIR)/usr/bin/
20        install -m 755 -g root -o root bin/tirex-tiledir-stat      $(DESTDIR)/usr/bin/
21        install -m 755 -g root -o root bin/tirex-rendering-control $(DESTDIR)/usr/bin/
22        install -m 755 -g root -o root munin/*                     $(DESTDIR)/usr/share/munin/plugins
23
24        mkdir -p man-generated
25        for i in bin/*; do if grep -q "=head" $$i; then pod2man $$i > man-generated/`basename $$i`.1; fi; done
26        pod2man --section=5 doc/tirex.conf.pod > man-generated/tirex.conf.5
27
28        install -m 755 -g root -o root -d                  $(DESTDIR)/etc/tirex
29        install -m 644 -g root -o root etc/tirex.conf.dist $(DESTDIR)/etc/tirex/tirex.conf
30        install -m 755 -g root -o root -d                  $(DESTDIR)/usr/share/man/man1/
31        install -m 644 -g root -o root man-generated/*.1   $(DESTDIR)/usr/share/man/man1/
32        install -m 755 -g root -o root -d                  $(DESTDIR)/usr/share/man/man5/
33        install -m 644 -g root -o root man-generated/*.5   $(DESTDIR)/usr/share/man/man5/
34
35        cd tirex-renderd; $(MAKE) DESTDIR=$(DESTDIR) install
36        $(MAKE) -f Makefile.perl install
37
38clean: Makefile.perl
39        $(MAKE) -f Makefile.perl clean
40        cd tirex-renderd; $(MAKE) DESTDIR=$(DESTDIR) clean
41        rm -f Makefile.perl
42        rm -f Makefile.perl.old
43        rm -f build-stamp
44        rm -f configure-stamp
45        rm -rf blib man-generated
46
Note: See TracBrowser for help on using the repository browser.