mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-02 19:29:30 +00:00
Updated for git (intermediate commit - not sure this works yet!)
This commit is contained in:
parent
587ac9c501
commit
089af1b2de
@ -1,6 +1,6 @@
|
|||||||
ifndef TAG
|
ifndef TAG
|
||||||
ifndef RELEASE
|
ifndef RELEASE
|
||||||
${error You must specify the RELEASE variable (e.g. make RELEASE=2.2)}
|
${error You must specify the RELEASE variable (e.g. make RELEASE=2.5)}
|
||||||
endif
|
endif
|
||||||
RELEASETAG=$(subst .,-,$(RELEASE))
|
RELEASETAG=$(subst .,-,$(RELEASE))
|
||||||
TAG=contiki-$(RELEASETAG)
|
TAG=contiki-$(RELEASETAG)
|
||||||
@ -8,33 +8,29 @@ else
|
|||||||
RELEASE=$(TAG)
|
RELEASE=$(TAG)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef CVSUSER
|
GITROOT=git://contiki.git.sourceforge.net/gitroot/contiki/contiki
|
||||||
CVSUSER=:pserver:anonymous
|
|
||||||
endif
|
|
||||||
|
|
||||||
CVSROOT=$(CVSUSER)@contiki.cvs.sourceforge.net:/cvsroot/contiki
|
|
||||||
|
|
||||||
package: all
|
package: all
|
||||||
|
|
||||||
test: export-package compile almost-clean
|
test: export-package compile almost-clean
|
||||||
|
|
||||||
export-package: clean export copy tgz zip
|
export-package: clean checkout copy tgz zip
|
||||||
|
|
||||||
almost-clean:
|
almost-clean:
|
||||||
rm -rf contiki-2.x contiki-$(RELEASE) contiki-collect-$(RELEASE)
|
rm -rf contiki contiki-$(RELEASE) contiki-collect-$(RELEASE)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf contiki-2.x contiki-$(RELEASE) contiki-collect-$(RELEASE) *.zip *.tar.gz
|
rm -rf contiki contiki-$(RELEASE) contiki-collect-$(RELEASE) *.zip *.tar.gz
|
||||||
|
|
||||||
copy:
|
copy:
|
||||||
cp -r contiki-2.x contiki-$(RELEASE)
|
cp -r contiki contiki-$(RELEASE)
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
(cd contiki-2.x/doc; make dox pdf)
|
(cd contiki/doc; make dox pdf)
|
||||||
|
|
||||||
copydoc:
|
copydoc:
|
||||||
cp contiki-2.x/doc/latex/refman.pdf contiki-$(RELEASE)/doc/
|
cp contiki/doc/latex/refman.pdf contiki-$(RELEASE)/doc/
|
||||||
cp -r contiki-2.x/doc/html contiki-$(RELEASE)/doc/
|
cp -r contiki/doc/html contiki-$(RELEASE)/doc/
|
||||||
|
|
||||||
tgz:
|
tgz:
|
||||||
tar czf contiki-$(RELEASE).tar.gz contiki-$(RELEASE)
|
tar czf contiki-$(RELEASE).tar.gz contiki-$(RELEASE)
|
||||||
@ -45,13 +41,12 @@ zip:
|
|||||||
chmod 644 contiki-$(RELEASE).zip
|
chmod 644 contiki-$(RELEASE).zip
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
(cd contiki-2.x/examples/compile-platforms; make)
|
(cd contiki/examples/compile-platforms; make)
|
||||||
|
|
||||||
checkout:
|
checkout:
|
||||||
cvs -d $(CVSROOT) co -r $(TAG) contiki-2.x
|
git clone $(GITROOT)
|
||||||
|
git checkout $(TAG)
|
||||||
export:
|
rm -rf contiki/.git
|
||||||
cvs -d $(CVSROOT) export -r $(TAG) contiki-2.x
|
|
||||||
|
|
||||||
-include Makefile.sky
|
-include Makefile.sky
|
||||||
-include Makefile.raven
|
-include Makefile.raven
|
||||||
|
Loading…
Reference in New Issue
Block a user