Skip to content
Snippets Groups Projects
Select Git revision
  • 904235b34932e54e7d500964495be0a76a2af91b
  • master default protected
  • protobuf_gen
  • ns3_work
  • Lip6-2025
  • Lip6-MultipleABD
  • AIProperties
  • sec-pattern-check
  • avatarSysML_04_2024
  • parser_work_06_2025
  • parser_work_04_2025
  • guard_refactoring_04_2025
  • parser_06_2023
  • guard_refactoring_debug
  • parser_03_2023
  • avatarSysML_Graphics
  • alan_attack_tree_gen
  • tags
  • separate_simulator
  • tests_explo
  • debug_simulator_07_2024
21 results

Makefile

Blame
  • Makefile 20.77 KiB
    export JAVAC  		= javac
    export JAR    		= jar
    JAVA			= java
    JAVADOC			= javadoc
    MAKE			= make -s
    TAR			= tar
    GZIP			= gzip
    GRADLE			= $(shell which gradle)
    GRADLE_VERSION_NEEDED	= 3.3
    ERROR_MSG		= printf "$(COLOR)\nBuild with gradle failed. Falling back to regular javac command...\n$(RESET)"
    
    ifeq "$(GRADLE)" ""
        ERROR_MSG	= echo "Gradle was not found. Falling back to regular javac command...\n"
        GRADLE 	= false && echo >/dev/null
    else
        GRADLE_VERSION 	:= $(shell $(GRADLE) --version | grep "^Gradle" | awk '{print $$2}')
        GRADLE_VERSION_MIN 	:= $(shell printf "%s\n%s\n" "$(GRADLE_VERSION_NEEDED)" "$(GRADLE_VERSION)" | sort -V 2>/dev/null | head -n1)
        ifneq "$(GRADLE_VERSION_NEEDED)" "$(GRADLE_VERSION_MIN)"
    	ERROR_MSG	= echo "$(COLOR)Gradle $(GRADLE_VERSION) is too old. Needs at least $(GRADLE_VERSION_NEEDED). Falling back to regular javac command...\n$(RESET)"
    	GRADLE = false && echo >/dev/null
        endif
    endif
    
    export COLOR		= $(shell tput setaf 1)
    export RESET		= $(shell tput sgr0)
    PREFIX			= [$(COLOR)BASE$(RESET)]             
    
    export TTOOL_PATH 	:= $(shell /bin/pwd)
    
    define HELP_message
    Compilation targets:
    --------------------
    make all                Build TTool and the jar of companion software.
    make ttool		Build TTool only.
    
    Usual targets:
    --------------
    make (help)             Print this help.
    make documentation      Generate the documentation of java classes using javadoc.
    make release            Prepare a new release for the website.
    			It produces the release.tgz and releaseWithSrc.tgz files.
    make test               Run tests on TTool.
    make publish_jar        Build TTool and upload the resulting archive.
    			!!! Must have the right ssh key installed for this !!!
    make clean              Clean the repository from compilation artifacts.
    make ultraclean         Clean the repository from binaries and compilation artifacts.
    
    Other targets:
    --------------
    make preinstall		Generate a preinstall version of TTool for Linux, Windows and
    			MacOS and publish them on perso.telecom-paristech.fr.
    			!!! Must have the right ssh key installed for this !!!
    make git		Update the build number.
    
    
    Please report bugs or suggestions of improvements to:
      ttool.telecom-paristech.fr/support.html
    endef
    export HELP_message
    
    .PHONY: ttool clean launcher graphminimize graphshow tiftranslator tmltranslator rundse remotesimulator webcrawler documentation help ultraclean publish_jar preinstall test git
    
    help:
    	@echo "$$HELP_message"
    
    FORCE:
    
    # ======================================== 
    # ========== SUB-PROJECTS BUILD ========== 
    # ========================================