Makefile - JacquesCarette/Drasil GitHub Wiki
Warning: Wiki should not be edited directly. Edit the files in the ./wiki/ folder instead and make a PR.
To get started with Drasil, try running make. You can also run make help in Drasil/code to get a list of available commands, as well as some starting instructions. For convenience, we will list more Makefile information below, however it may not be as up-to-date as make help.
The most commonly used targets are listed here:
-
make helpwill show you a list of available commands. Alternatively, if your terminal shell supports tab-complete, you should also be able to type a few characters towards a target and hit TAB to see a list of available targets that start with what you wrote. -
make help_exampleswill list all examples generated by Drasil. Useful for the example-specific targets, where X is the example. -
makerunsmake test. Generates each example and tests against a stable version of the generated artifacts.-
make tracegraphsperformsmake testand then generates SVG, PNG, and PDF representations of the traceability graphs for viewing in the generated SRS documents.
-
-
make hlint/make hot_hlinttests the linter against your codebase, checking for code that can be cleaned up. -
make pr_readyrunsmake allandmake hot_hlint, testing your artifact diffs and checking lint tests. If it runs successfully, then your should be a bit closer to being "Pull Request Ready" (up to your judgment). -
make cleanallows for make to be run from scratch (by runningstack cleanin all the directories) -
make cleanArtifacts(ormake clean_artifacts) will clean your workspace, deleting all generated artifacts -
make stabilizelets you rapidly copy over any stable-breaking changes from thebuild/folder (make <example>_stabilizewill allow you to do this for a specific example too). See this Wiki article for more details. -
make docsbuilds the Haddock documentation for the full Drasil suite. Notably, it creates 2 folderscode/docsandcode/docs/full, respectively containing the external Haddock documentation and internal Haddock documentation (with all modules fully exposed). If you would like to preview what your documentation changes look like, you should open up the relatedcode/docs/index.htmlorcode/docs/full/index.htmlfile in your web browser and navigate to the areas you're interested in. -
make website- "Lightweight" local deployment of the website. It does not create all required artifacts, only the website. -
make deploy- "Complete" local deployment of the website, compiling TeX, code files, and everything else too! -
make X_mdbook_server- Build a specific mdBook example, copy over the assets, and start the server. Please usemake help_examplesfor the complete list of potential values for X.