Knut Haugland is a Makefile for creating Kon-Tiki static web sites. It provides utility targets for building, deploying, and managing the infrastructure of the static web sites.
Have a look at examples/ for example projects of how Knut Haugland can be used.
- Download
src/Makefile-knut-hauglandas theMakefileof your project:curl https://raw.githubusercontent.com/cliffano/knut-haugland/main/src/Makefile-knut-haugland -o Makefile - Create configuration file
knut-haugland.ymlwith properties described in Configuration section - Run the available
Makefiletargets described in Usage section
Create KnutHaugland configuration file called knut-haugland.yml with contains the following properties:
| Property | Description | Example |
|---|---|---|
| aws_region | AWS region code | ap-southeast-2 |
| bucket_name | S3 bucket name for the static web site | knuthauglandexample.example.com |
The following targets are available:
| Target | Description |
|---|---|
| ci | CI target to be executed by CI/CD tool, end to end build of the static web site |
| stage | Ensure stage directory exists |
| clean | Remove all temporary (staged, generated, cached) files |
| deps | Retrieve package dependencies using Bob |
| update-to-latest | Update Makefile to the latest version on origin's main branch |
| update-to-version | Update Makefile to the version defined in TARGET_KNUT_HAUGLAND_VERSION parameter |
| build | Build the static web site using AE86 |
| deploy | Sends the built static web site code to AWS S3 bucket |
| publish | A convenient target for running: clean deps init build deploy |
| infra-<init | destroy |
Related Projects:
- generator-kon-tiki - Kon-Tiki static web site projects generator using Plop

