Makefile: use srcdir to reach libopts

This commit is contained in:
Nikos Mavrogiannopoulos
2015-09-22 16:15:38 +02:00
parent fd35c4e0e2
commit 5dd511d0aa
+1 -1
View File
@@ -37,7 +37,7 @@ dist-hook: ChangeLog
@echo "Checking whether included libopts matches the system's. If the"
@echo "check fails upgrade the included libopts."
@echo "*****************************************************************"
test "`autoopts-config libsrc|cut -d '-' -f 2|sed 's/.tar.gz//'`" = "`cat libopts/autoopts/options.h |grep OPTIONS_VERSION_STRING|cut -d '"' -f 2|sed 's/:/./g'`"
test "`autoopts-config libsrc|cut -d '-' -f 2|sed 's/.tar.gz//'`" = "`cat $(srcdir)/libopts/autoopts/options.h |grep OPTIONS_VERSION_STRING|cut -d '"' -f 2|sed 's/:/./g'`"
cd $(distdir)/src/ && for i in ocserv-args.def ocpasswd-args.def;do \
$(AUTOGEN) $$i; \
done