]> git.uio.no Git - check_openmanage.git/blobdiff - Makefile
added workaround for omsa 7.1.0 bug with uncertified disks
[check_openmanage.git] / Makefile
index 7441083e7c8b06cb355d923bc8efb884e251f466..8a8286c6e9a90c24db584cd2b4aca616dae703ca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,18 +2,30 @@ NAME = check_openmanage
 VER  = $(shell ./$(NAME) -V | head -n 1 | awk '{print $$NF}')
 DATE = $(shell date +%F)
 
-default: dist
+DIRS = man
 
-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)
-       mv $(NAME).8 $(NAME).conf.5 $(NAME)-$(VER)
-       cp $(NAME){,.pod,.conf.pod,.php} $(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