include Make.inc
MFLAGS += --no-print-directory
-# Speed up the build for developers. This means editing Make.inc,
-# and adding "BOILER = yes" to the bottom. Once that's done, the
-#
-#
-ifeq "$(BOILER)" "yes"
-
# The version of GNU Make is too old, don't use it (.FEATURES variable was
# wad added in 3.81)
ifndef .FEATURES
# And over-ride all of the other magic.
include scripts/boiler.mk
-# These are not yet converted to the new system
-SUBDIRS = $(wildcard raddb scripts doc)
-
-else
-.PHONY: all clean install
-
-SUBDIRS = $(wildcard src raddb scripts doc)
-WHAT_TO_MAKE = all
-
-all:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
-clean:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
- @rm -f *~
-endif
-
-.PHONY: tests
-tests:
- @$(MAKE) -C src/tests tests
+.PHONY: test
+test:
+ @$(MAKE) -C raddb/certs
#
# The $(R) is a magic variable not defined anywhere in this source.
.PHONY: install.sbindir
install.sbindir:
@[ -d $(R)$(sbindir) ] || $(INSTALL) -d -m 755 $(R)$(sbindir)
-
-.PHONY: install.raddbdir
-install.raddbdir:
- @[ -d $(R)$(raddbdir) ] || $(INSTALL) -d -m 755 $(R)$(raddbdir)
.PHONY: install.dirs
install.dirs: install.bindir install.sbindir
install: install.dirs install.share install.man
-install:
- @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common
-
ifneq ($(RADMIN),)
ifneq ($(RGROUP),)
.PHONY: install-chown
endif
endif
-.PHONY: common $(SUBDIRS)
-
-common: $(SUBDIRS)
-
-$(SUBDIRS):
- @echo "Making $(WHAT_TO_MAKE) in $@..."
- @$(MAKE) $(MFLAGS) -C $@ $(WHAT_TO_MAKE)
-
distclean: clean
@rm -f config.cache config.log config.status libtool \
src/include/radpaths.h src/include/stamp-h \
.PHONY: deb
deb:
fakeroot dpkg-buildpackage -b -uc
+
+# Developer checks
+.PHONY: warnings
+warnings:
+ @(make clean all 2>&1) | egrep -v '^/|deprecated|^In file included|: In function| from |^HEADER|^CC|^LINK' > warnings.txt
+ @wc -l warnings.txt