]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
snapshot target
authorStephen Hemminger <shemminger@linux-foundation.org>
Fri, 21 Dec 2007 17:53:45 +0000 (09:53 -0800)
committerStephen Hemminger <shemminger@linux-foundation.org>
Fri, 21 Dec 2007 17:53:45 +0000 (09:53 -0800)
Add Makefile target to create snapshot file.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Makefile
include/SNAPSHOT.h

index 6c976dd990d828a0ff691567467079bca82383d3..de04176dcacdf0e195381e649c9272fb2b8b125a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,10 @@ install: all
        install -m 0755 -d $(DESTDIR)$(MANDIR)/man3
        install -m 0644 $(shell find man/man3 -maxdepth 1 -type f) $(DESTDIR)$(MANDIR)/man3
 
+snapshot:
+       echo "static const char SNAPSHOT[] = \""`date +%y%m%d`"\";" \
+               > include/SNAPSHOT.h
+
 clean:
        rm -f cscope.*
        @for i in $(SUBDIRS) doc; \
index dde2804de1a6a8d86fb2797036bcb30fd67d8d7c..cdeb2067d9854e4b7c9cf7235298fe2aaebb9213 100644 (file)
@@ -1 +1 @@
-static char SNAPSHOT[] = "071016";
+static const char SNAPSHOT[] = "071221";