Create a version information file in the system.
NAME = network
-VER = 0.99.0
+VER = 001
DESTDIR=
+# File to store the version number in.
+VERSION_FILE = $(DESTDIR)/lib/network/version
+
all:
@echo "Nothing to do here."
ln -svf ip-updown ${DESTDIR}/etc/ppp/ipv6-down
install -m 755 -v ppp/dialer $(DESTDIR)/etc/ppp
+ # Create the version file.
+ : > ${VERSION_FILE}
+ echo "# This file is automatically generated." >> ${VERSION_FILE}
+ echo "NETWORK_VERSION=$(VER)" >> ${VERSION_FILE}
+
dist:
git archive --format tar --prefix $(NAME)-$(VER)/ HEAD | gzip -9 > \
$(NAME)-$(VER).tar.gz
done
}
+# Include version information.
+. /lib/network/version
+
for file in /lib/network/functions.*; do
. ${file}
done