export DESTDIR := $(R)
export PROJECT_NAME := freeradius
+#
+# src/include/all.mk needs these, so define them before we include that file.
+#
+PROTOCOLS := dhcpv4 eap freeradius snmp vqp dhcpv6 ethernet radius tacacs
+
# And over-ride all of the other magic.
ifneq "$(MAKECMDGOALS)" "deb"
ifeq "$(findstring crossbuild,$(MAKECMDGOALS))" ""
#
export DESTDIR := $(R)
-DICTIONARIES := $(shell find share/dictionary -type f -name dictionary*)
+DICTIONARIES := $(wildcard $(addsuffix /dictionary*,$(addprefix share/dictionary/,$(PROTOCOLS))))
+
install.share: $(addprefix $(R)$(dictdir)/,$(patsubst share/dictionary/%,%,$(DICTIONARIES)))
$(R)$(dictdir)/%: share/dictionary/%
#
# Find the RFC dictionaries, and add them to the list to be converted
-DICT := $(shell find share/dictionary -type f -name *dictionary.rfc*)
+DICT := $(wildcard $(addsuffix /dictionary.rfc*,$(addprefix share/dictionary/,$(PROTOCOLS))))
-# Find internal dictionaries and add them to the list to be converted
-DICT += $(shell find share/dictionary -type f -name *dictionary.freeradius*)
+# Find internal dictionaries and add them to the list to be converte
+DICT += $(wildcard $(addsuffix /dictionary.freeradius*,$(addprefix share/dictionary/,$(PROTOCOLS))))
# These contain the protocol number definitions
-DICT += $(shell find share/dictionary -type f -name *dictionary)
+DICT += $(wildcard $(addsuffix /dictionary,$(addprefix share/dictionary/,$(PROTOCOLS))))
# Add in protocol specific dictionaries (should be done in proto_* modules?)
DICT += share/dictionary/vqp/dictionary.vqp