miniupnpc/miniupnpd/check.mk
2020-05-07 01:02:48 +02:00

18 lines
401 B
Makefile

# (c) 2020 Thomas BERNARD
check: validateupnppermissions validategetifaddr validatessdppktgen \
validateversion
validateversion: miniupnpd $(SRCDIR)/VERSION
./miniupnpd --version
[ "`./miniupnpd --version | head -1 | cut -d' ' -f-2`" = "miniupnpd `cat $(SRCDIR)/VERSION`" ]
touch $@
validate%: $(SRCDIR)/test%.sh test%
$(SHELL) $<
touch $@
validatessdppktgen: testssdppktgen
./$<
touch $@