2008-10-30 22:29:21 +01:00
|
|
|
ifndef TAG
|
|
|
|
ifndef RELEASE
|
|
|
|
${error You must specify the RELEASE variable (e.g. make RELEASE=2.2)}
|
|
|
|
endif
|
|
|
|
RELEASETAG=$(subst .,-,$(RELEASE))
|
|
|
|
TAG=contiki-$(RELEASETAG)
|
|
|
|
else
|
|
|
|
RELEASE=$(TAG)
|
2008-08-15 20:08:03 +02:00
|
|
|
endif
|
|
|
|
|
2008-10-30 22:29:21 +01:00
|
|
|
ifndef CVSUSER
|
|
|
|
CVSUSER=:pserver:anonymous
|
|
|
|
endif
|
|
|
|
|
|
|
|
CVSROOT=$(CVSUSER)@contiki.cvs.sourceforge.net:/cvsroot/contiki
|
|
|
|
|
|
|
|
package: export-package almost-clean
|
2008-08-15 20:08:03 +02:00
|
|
|
|
2008-10-30 22:29:21 +01:00
|
|
|
test: export-package compile almost-clean
|
2008-08-15 20:08:03 +02:00
|
|
|
|
2008-10-30 22:29:21 +01:00
|
|
|
export-package: clean export copy tgz zip collectpack avr-raven-pack
|
2008-08-15 20:08:03 +02:00
|
|
|
|
|
|
|
almost-clean:
|
|
|
|
rm -rf contiki-2.x contiki-$(RELEASE) contiki-collect-$(RELEASE)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf contiki-2.x contiki-$(RELEASE) contiki-collect-$(RELEASE) *.zip *.tar.gz
|
|
|
|
|
|
|
|
copy:
|
|
|
|
cp -r contiki-2.x contiki-$(RELEASE)
|
|
|
|
|
|
|
|
doc:
|
|
|
|
(cd contiki-2.x/doc; make dox pdf)
|
|
|
|
|
|
|
|
copydoc:
|
|
|
|
cp contiki-2.x/doc/latex/refman.pdf contiki-$(RELEASE)/doc/
|
|
|
|
cp -r contiki-2.x/doc/html contiki-$(RELEASE)/doc/
|
|
|
|
|
|
|
|
tgz:
|
|
|
|
tar czf contiki-$(RELEASE).tar.gz contiki-$(RELEASE)
|
|
|
|
chmod 644 contiki-$(RELEASE).tar.gz
|
|
|
|
|
|
|
|
zip:
|
|
|
|
zip -r contiki-$(RELEASE).zip contiki-$(RELEASE)
|
|
|
|
chmod 644 contiki-$(RELEASE).zip
|
|
|
|
|
|
|
|
compile:
|
|
|
|
(cd contiki-2.x/examples/compile-platforms; make)
|
|
|
|
|
|
|
|
checkout:
|
2008-10-30 22:29:21 +01:00
|
|
|
cvs -d $(CVSROOT) co -r $(TAG) contiki-2.x
|
2008-08-15 20:08:03 +02:00
|
|
|
|
|
|
|
export:
|
2008-10-30 22:29:21 +01:00
|
|
|
cvs -d $(CVSROOT) export -r $(TAG) contiki-2.x
|
2008-08-15 20:08:03 +02:00
|
|
|
|
|
|
|
contiki-collect:
|
|
|
|
(cd contiki-2.x/examples/sky-shell; make sky-shell.ihex; ant dist; chmod 755 dist/tools/*-linux)
|
|
|
|
cp -r contiki-2.x/examples/sky-shell/dist contiki-collect-$(RELEASE)
|
|
|
|
|
|
|
|
collectpack: contiki-collect
|
|
|
|
tar czf contiki-collect-$(RELEASE).tar.gz contiki-collect-$(RELEASE)
|
|
|
|
chmod 644 contiki-collect-$(RELEASE).tar.gz
|
|
|
|
zip -r contiki-collect-$(RELEASE).zip contiki-collect-$(RELEASE)
|
|
|
|
chmod 644 contiki-collect-$(RELEASE).zip
|
2008-10-30 22:29:21 +01:00
|
|
|
|
|
|
|
avr-raven:
|
|
|
|
(cd contiki-2.x/examples/webserver-ipv6-raven; make)
|
|
|
|
(cd contiki-2.x/platform/avr-ravenlcd; make)
|
|
|
|
(cd contiki-2.x/examples/ravenusbstick; make)
|
|
|
|
mkdir contiki-raven-uipv6-$(RELEASE)
|
|
|
|
cp contiki-2.x/examples/webserver-ipv6-raven/webserver6.elf contiki-raven-uipv6-$(RELEASE)
|
|
|
|
cp contiki-2.x/platform/avr-ravenlcd/ravenlcd_3290.elf contiki-raven-uipv6-$(RELEASE)
|
|
|
|
cp contiki-2.x/examples/ravenusbstick/ravenusbstick.elf contiki-raven-uipv6-$(RELEASE)
|
|
|
|
|
|
|
|
avr-raven-pack: avr-raven
|
|
|
|
tar czf contiki-raven-uipv6-$(RELEASE).tar.gz contiki-raven-uipv6-$(RELEASE)
|
|
|
|
chmod 644 contiki-raven-uipv6-$(RELEASE).tar.gz
|
|
|
|
zip -r contiki-raven-uipv6-$(RELEASE).zip contiki-raven-uipv6-$(RELEASE)
|
|
|
|
chmod 644 contiki-raven-uipv6-$(RELEASE).zip
|