Files
ocserv/Makefile.am
2015-09-19 20:43:44 +02:00

47 lines
1.2 KiB
Makefile

AUTOMAKE_OPTIONS = foreign
EXTRA_DIST = LICENSE README.md
SUBDIRS = gl
if NEED_LIBOPTS
SUBDIRS += libopts
endif
SUBDIRS += src doc tests
ACLOCAL_AMFLAGS = -I gl/m4 -I libopts/m4
gl:
gnulib-tool --add-import --lgpl=2
clang:
make clean
scan-build ./configure
rm -rf scan.tmp
scan-build -o scan.tmp make
ctags:
find . -type f -name "*.[ch]*" | xargs @CTAGS@
cscope:
@CSCOPE@ -b -R
cref: ctags cscope
ChangeLog:
git log --pretty --numstat --summary -- | git2cl > ChangeLog
.PHONY: ChangeLog
dist-hook: ChangeLog
mv ChangeLog $(distdir)
$(AUTOGEN) --version
@echo "*****************************************************************"
@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'`"
cd $(distdir)/src/ && for i in ocserv-args.def ocpasswd-args.def;do \
$(AUTOGEN) $$i; \
done
cd $(distdir)/src/ && for i in *-args.c *-args.h;do \
mv $$i $$i.bak; \
done