snapshot target

Add Makefile target to create snapshot file.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
This commit is contained in:
Stephen Hemminger 2007-12-21 09:53:45 -08:00
parent c595fda55b
commit 235ac6a41d
2 changed files with 5 additions and 1 deletions

View File

@ -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; \

View File

@ -1 +1 @@
static char SNAPSHOT[] = "071016";
static const char SNAPSHOT[] = "071221";