Commit ea50d084 authored by POGODALLA Sylvain's avatar POGODALLA Sylvain

Makefile simplification

parent 9411bc2e
......@@ -17,7 +17,7 @@
# #
##########################################################################
.PHONY: clean install uninstall tar www release test-www-acg opam-meta opam version set_log_level
.PHONY: clean install uninstall tar www release test-www-acg opam-meta opam version package-copying opam-admin sync
VERSION_BASENAME=$(shell cat acgtk.version)
VERSION = $(VERSION_BASENAME)-$(shell date "+%Y%m%d")
......@@ -31,11 +31,6 @@ clean:
dune clean
find . -name "*~" -exec rm -f {} \;
set_log_level:
# find . -name "dune" -exec sed -i -e 's/-level \([^ ]*\)/-level TRACE/' {} \;
find . -name "dune" -exec sed -i -e 's/-level \([^ ]*\)/-level NONE/' {} \;
install:
dune install
......@@ -81,17 +76,22 @@ OPAM_CALLIGRAMME_ACG_REPO_DIR=~/www-calligramme-acg/software/opam-acg
opam-package/url: tar
md5sum acg-$(VERSION).tar.gz | cut -d " " -f 1 | xargs -i printf "archive: \"http://acg.loria.fr/software/acg-$(VERSION).tar.gz\"\nchecksum: \"%s\"\n" {} > $@
test-www-acg:
test-www-acg: opam-admin
cd $(OPAM_ACG_REPO_DIR) && opam admin make && echo "Going to rsync with loria.loria.fr:$(OPAM_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)
opam-meta: tar
cp -rT opam-package $(OPAM_TESTING_DIR)/acgtk/acgtk.$(VERSION_BASENAME)
cp -rT opam-package $(OPAM_GIT_REPO_DIR)/acgtk/acgtk.$(VERSION_BASENAME)
cp -rT opam-package $(OPAM_ACG_REPO_DIR)/packages/acgtk/acgtk.$(VERSION_BASENAME) && cd $(OPAM_ACG_REPO_DIR) && opam admin make && echo "Going to rsync with loria.loria.fr:$(OPAM_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)
sync: opam-admin
cd $(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)
opam-admin:
cd $(OPAM_ACG_REPO_DIR) && opam admin make
opam:opam-package/url www version
package-copying: tar
opam lint opam-package/opam
cp -rT opam-package $(OPAM_TESTING_DIR)/acgtk/acgtk.$(VERSION_BASENAME)
cp -rT opam-package $(OPAM_GIT_REPO_DIR)/acgtk/acgtk.$(VERSION_BASENAME)
cp -rT opam-package $(OPAM_ACG_REPO_DIR)/packages/acgtk/acgtk.$(VERSION_BASENAME) && cd $(OPAM_ACG_REPO_DIR) && opam admin make && echo "Going to rsync with loria.loria.fr:$(OPAM_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_ACG_REPO_DIR) && echo "Going to rsync with loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)" && rsync -vaz --rsh="ssh -l pogodall" ./ pogodall@loria.loria.fr:$(OPAM_CALLIGRAMME_ACG_REPO_DIR)
cp -rT opam-package $(OPAM_ACG_REPO_DIR)/packages/acgtk/acgtk.$(VERSION_BASENAME)
opam-meta: package-copying opam-admin sync
opam:opam-package/url www version package-copying opam-admin sync
archive: "http://acg.loria.fr/software/acg-1.5.0-20181016.tar.gz"
checksum: "4b037edfdd9630eec9667fca6c49e46b"
archive: "http://acg.loria.fr/software/acg-1.5.0-20181018.tar.gz"
checksum: "846ce34835d46a2a7bf1c3e0918de204"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment