Add explicit queuebuf and packetbuf to build
[contiki-2.x.git] / tools / release-tools / Makefile
blob35c369a87d95b7fc83ed9623144bb474f3197ca8
1 ifndef TAG
2 ifndef RELEASE
3 ${error You must specify the RELEASE variable (e.g. make RELEASE=2.2)}
4 endif
5 RELEASETAG=$(subst .,-,$(RELEASE))
6 TAG=contiki-$(RELEASETAG)
7 else
8 RELEASE=$(TAG)
9 endif
11 ifndef CVSUSER
12 CVSUSER=:pserver:anonymous
13 endif
15 CVSROOT=$(CVSUSER)@contiki.cvs.sourceforge.net:/cvsroot/contiki
17 package: all
19 test: export-package compile almost-clean
21 export-package: clean export copy tgz zip
23 almost-clean:
24 rm -rf contiki-2.x contiki-$(RELEASE) contiki-collect-$(RELEASE)
26 clean:
27 rm -rf contiki-2.x contiki-$(RELEASE) contiki-collect-$(RELEASE) *.zip *.tar.gz
29 copy:
30 cp -r contiki-2.x contiki-$(RELEASE)
32 doc:
33 (cd contiki-2.x/doc; make dox pdf)
35 copydoc:
36 cp contiki-2.x/doc/latex/refman.pdf contiki-$(RELEASE)/doc/
37 cp -r contiki-2.x/doc/html contiki-$(RELEASE)/doc/
39 tgz:
40 tar czf contiki-$(RELEASE).tar.gz contiki-$(RELEASE)
41 chmod 644 contiki-$(RELEASE).tar.gz
43 zip:
44 zip -r contiki-$(RELEASE).zip contiki-$(RELEASE)
45 chmod 644 contiki-$(RELEASE).zip
47 compile:
48 (cd contiki-2.x/examples/compile-platforms; make)
50 checkout:
51 cvs -d $(CVSROOT) co -r $(TAG) contiki-2.x
53 export:
54 cvs -d $(CVSROOT) export -r $(TAG) contiki-2.x
56 -include Makefile.sky
57 -include Makefile.raven
59 all: export-package $(BINARIES) almost-clean