Skip to content
Snippets Groups Projects
Makefile.dev 1.79 KiB
Newer Older
#######################################################################################


#######################################################################################
# TEST, NON REGR. ETC...
TESTDIR=./test

Erwan Jahier's avatar
Erwan Jahier committed
.PHONY: diff test log opam

test_nc: 
	cd $(TESTDIR) ; make test ; cd $(curdir)

test: 
	cd $(TESTDIR) ; make ; make time
	cd $(curdir)
	make clean_test

clean_test:
	rm -f test/tmp2/*.cm* test/tmp1/*.cm* 
	rm -f test/tmp2/*.o test/tmp1/*.o 
qtest: 
	cd $(TESTDIR) ; make test ; make time
	cd $(curdir)

erwan's avatar
erwan committed
#######################################################################################
# 

README.md: README.txt
	cat $< | grep -v "^(\*" > $@

#######################################################################################
# git entry points

	rm -f lib/lv6version.ml
	make lib/lv6version.ml
BRANCH=$(shell git rev-parse --abbrev-ref HEAD)

	git commit -a -F log && echo "Hint: 'make ci' to test the CI before doing 'make 'push'"
erwan's avatar
erwan committed

push: opam-test
	git push && make uv
	git commit -a -F log --amend 


###############################
# opam-ing

NAME=lustre-v6
SRC=lib bin LICENSE Makefile Makefile.version *.opam
$(NAME).$(VERSION).tgz: $(SRC) 
	git archive --prefix=$(NAME).$(VERSION)/ -o $@ HEAD $(SRC) test
opam-rel : $(NAME).$(VERSION).tgz
	make-opam-pack $(NAME).$(VERSION) $(NAME)

opam-test : $(NAME).$(VERSION).tgz
	make-opam-pack $(NAME).$(VERSION) $(NAME) -test
###############################
# pushing onto the official repo
WWW="/import/www/DIST-TOOLS/SYNCHRONE"
OPAM_FILE=$(shell find  $(WWW)/opam-repository/packages/$(NAME) -name opam -cnewer opam | head -1 | sed -e 's/^./\U&/')
OPAM_DIR=`dirname $(OPAM_FILE)`

opam-pr:
	cp -r $(OPAM_DIR) /home/jahier/local/opam-repository/packages/$(NAME)