You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
binFiles=napi nlog get_profile.sh
|
|
gzFiles=napi.gz nlog.gz get_profile.sh.gz
|
|
libFiles=ENV
|
|
|
|
sync: bin lib gz
|
|
|
|
gz: $(gzFiles)
|
|
rsync -avu $^ ssd:eloyd/
|
|
|
|
bin: $(binFiles)
|
|
rsync -avu $^ root@192.168.1.19:/usr/local/bin/
|
|
rsync -avu $^ root@192.168.1.15:/usr/local/bin/
|
|
|
|
lib: $(libFiles)
|
|
rsync -avu $^ ssd:eloyd/
|
|
rsync -avu $(libFiles) root@192.168.1.19:/usr/local/nagios/libexec/
|
|
rsync -avu $(libFiles) root@192.168.1.15:/usr/local/nagios/libexec/
|
|
|
|
napi.gz: napi
|
|
gzip -f -9 --keep $<
|
|
chmod 644 $@
|
|
|
|
nlog.gz: nlog
|
|
gzip -f -9 --keep $<
|
|
chmod 644 $@
|
|
|
|
get_profile.sh.gz: get_profile.sh
|
|
gzip -f -9 --keep $<
|
|
chmod 644 $@
|
|
|
|
test: napi
|
|
@echo "### Checking HGM:"
|
|
./napi -t hgm -hg arrs -o i -o h -v | head -5
|
|
@echo ""
|
|
@echo "### Checking -Q -f .output:"
|
|
./napi -Q -f .output | head -5
|
|
@echo ""
|
|
@echo "Checking file sizes for current and save/file:"
|
|
./napi --save asdhjadkajthksdfga.json -v | head -5
|
|
./napi | wc
|
|
./napi --file asdhjadkajthksdfga.json | wc
|
|
rm -f asdhjadkajthksdfga.json
|
|
@echo ""
|
|
@echo "Checking stats:"
|
|
./napi --stats
|