forked from trondham/check_openmanage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (24 loc) · 868 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
NAME = check_openmanage
VER = $(shell ./$(NAME) -V | head -n 1 | awk '{print $$NF}')
DATE = $(shell date +%F)
DIRS = man
default: dist man-clean
man: force_look
cd man; $(MAKE)
man-clean: force_look
cd man; $(MAKE) clean
oldman:
pod2man -s 8 -r "`./$(NAME) -V | head -n 1`" -c 'Nagios plugin' $(NAME).pod $(NAME).8
pod2man -s 5 -r "`./$(NAME) -V | head -n 1`" -c 'Nagios plugin' $(NAME).conf.pod $(NAME).conf.5
dist: man
mkdir $(NAME)-$(VER)
cp $(NAME) $(NAME)-$(VER)
cp -r man $(NAME)-$(VER)
cp *.php $(NAME)-$(VER)
cp nagios-plugins-openmanage.spec $(NAME)-$(VER)
cp example.conf CHANGES COPYING INSTALL install.bat install.sh README $(NAME)-$(VER)
cp -r debian $(NAME)-$(VER)
perl -p -i -e 's/___DATE___/$(DATE)/' $(NAME)-$(VER)/check_openmanage.php
perl -p -i -e 's/___VERSION___/$(VER)/' $(NAME)-$(VER)/check_openmanage.php
force_look:
true