11# Copyright Layer5, Inc.
22#
3- # Licensed under the Apache License, Version 2.0 (the "License");
4- # you may not use this file except in compliance with the License.
5- # You may obtain a copy of the License at
3+ # Licensed under the GNU Affero General Public License, Version 3.0
4+ # (the # "License"); you may not use this file except in compliance
5+ # with the License. You may obtain a copy of the License at
66#
7- # http ://www.apache .org/licenses/LICENSE-2.0
7+ # https ://www.gnu .org/licenses/agpl-3.0.en.html
88#
99# Unless required by applicable law or agreed to in writing, software
1010# distributed under the License is distributed on an "AS IS" BASIS,
1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- # include .github/build/Makefile.show-help.mk
15+ include .github/build/Makefile.core.mk
16+ include .github/build/Makefile.show-help.mk
1617
17- # # Install academy-example dependencies on your local machine.
18- # # See https://gohugo.io/categories/installation
18+ # ----------------------------------------------------------------------------
19+ # Academy
20+ # ---------------------------------------------------------------------------
21+ # # Install site dependencies
1922setup :
2023 npm install
2124
22- # # Run on your local machine with draft and future content enabled.
25+ # # Build and run site locally with draft and future content enabled.
2326site : check-go
2427 hugo server -D -F
2528
29+ # # Build site for local consumption
2630build :
27- hugo
31+ hugo build
2832
2933# # Empty build cache and run on your local machine.
3034clean :
3135 hugo --cleanDestinationDir
3236 make site
3337
38+
39+
40+ # # ------------------------------------------------------------
41+ ----MAINTENANCE : Show help for available targets
42+
3443check-go :
3544 @echo " Checking if Go is installed..."
3645 @command -v go > /dev/null || (echo " Go is not installed. Please install it before proceeding." ; exit 1)
3746 @echo " Go is installed."
3847
39- # # Update academy-theme package to latest version
40- academy-update :
48+ # # Update the academy-theme package to latest version
49+ theme-update :
50+ echo " Updating to latest academy-theme..." && \
4151 hugo mod get -u
4252
43- .PHONY : setup build site clean site-fast check-go academy -update
53+ .PHONY : setup build site clean site-fast check-go theme -update
0 commit comments