Makefile 900 Bytes
Newer Older
Kevin Kershaw's avatar
Kevin Kershaw committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
# File:        Makefile
# Author:      Nick Nielsen <n.nielsen@cablelabs.com>
# Date:        Wed Mar 03 10:49:55 2010
# Description: Makefile

MAJOR_VERSION=1
MINOR_VERSION=5.2
VERSION=$(MAJOR_VERSION).$(MINOR_VERSION)

TTTPACKAGE=TTT-$(VERSION)

package: clean
#  Check out fresh version of everything that is checked into SVN
	svn co https://devzone.cablelabs.com/svn/oc/ttt $(TTTPACKAGE)
#
#  Remove .svn directories.
	rm -rf `find $(TTTPACKAGE) -name '.svn'`
#
#  Remove unneeded files
	-rm -f $(TTTPACKAGE)/Makefile
#
#  Build certain packages
#
	cd $(TTTPACKAGE)/certparser && make dist
#
	cd $(TTTPACKAGE)/hashfile_parser && make dist
#
	cd $(TTTPACKAGE)/helloworld && ant
#
	cd $(TTTPACKAGE)/ocapperm && ant
#
	cd $(TTTPACKAGE)/parse-si && make dist
#
#  Now, zip up the whole thing.
	zip -r $(TTTPACKAGE).zip $(TTTPACKAGE)

clean:
	-rm -rf $(TTTPACKAGE)
	-rm -f $(TTTPACKAGE).zip
	-rm -f *~