-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathMakefile.new
More file actions
39 lines (33 loc) · 965 Bytes
/
Makefile.new
File metadata and controls
39 lines (33 loc) · 965 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: build watch clean rebuild deploy help
# Default target
help:
@echo "Cloud Haskell Documentation Site - Hakyll"
@echo ""
@echo "Available targets:"
@echo " build - Build the site generator and website"
@echo " watch - Start preview server (http://localhost:8000)"
@echo " clean - Clean generated files"
@echo " rebuild - Clean and rebuild everything"
@echo " deploy - Deploy to GitHub Pages"
@echo ""
@echo "First time setup:"
@echo " cabal build"
# Build the site generator first, then build the site
build:
cabal build
cabal run site build
# Watch for changes and serve locally
watch:
cabal build
cabal run site watch
# Clean generated files
clean:
cabal run site clean
rm -rf _cache _site
# Rebuild from scratch
rebuild:
cabal run site rebuild
# Deploy (builds _site directory)
deploy: build
@echo "Deploy _site directory to your hosting service"
@echo "For GitHub Pages, commit and push to main/master branch"