]> git.uio.no Git - check_openmanage.git/blob - Makefile
foo
[check_openmanage.git] / Makefile
1 NAME = check_openmanage
2 VER  = $(shell ./$(NAME) -V | head -n 1 | awk '{print $$NF}')
3
4 default: dist
5
6 man:
7         pod2man -s 8 -r "`./$(NAME) -V | head -n 1`" -c 'Nagios plugin' $(NAME).pod $(NAME).8
8         pod2man -s 5 -r "`./$(NAME) -V | head -n 1`" -c 'Nagios plugin' $(NAME).conf.pod $(NAME).conf.5
9
10 dist: man
11         mkdir $(NAME)-$(VER)
12         mv $(NAME).8 $(NAME).conf.5 $(NAME)-$(VER)
13         cp $(NAME){,.pod,.conf.pod,.php} $(NAME)-$(VER)
14         cp nagios-plugins-check-openmanage.spec $(NAME)-$(VER)
15         cp CHANGES COPYING INSTALL install.bat install.sh README $(NAME)-$(VER)
16         cp -r debian $(NAME)-$(VER)
17         rm -rf $(NAME)-$(VER)/debian/.svn