forked from intentee/poet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (40 loc) · 1.21 KB
/
Makefile
File metadata and controls
54 lines (40 loc) · 1.21 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.DEFAULT_GOAL := release
RUST_LOG ?= debug
# -----------------------------------------------------------------------------
# Real targets
# -----------------------------------------------------------------------------
package-lock.json: package.json
npm install --package-lock-only
node_modules: package-lock.json
npm install --from-lockfile
touch node_modules
public: node_modules
./jarmuz-generate.mjs
test_site.AppDir:
cargo run make app-dir . \
--name test_site \
--output-directory . \
--title "Test Site" \
--version "1.2.3"
target/debug/poet: target/debug/poet
cargo build
test_site.AppDir/poet: target/debug/poet test_site.AppDir
cp target/debug/poet test_site.AppDir/poet
test_site-x86_64.AppImage: test_site.AppDir test_site.AppDir/poet
ARCH=x86_64 appimage-run ~/bin/appimagetool-x86_64.AppImage ./test_site.AppDir
# -----------------------------------------------------------------------------
# Phony targets
# -----------------------------------------------------------------------------
.PHONY: clean
clean:
rm -rf node_modules
rm -rf target
.PHONY: fmt
fmt: node_modules
./jarmuz-fmt.mjs
.PHONY: watch
watch: node_modules
./jarmuz-watch.mjs
.PHONY: release
release:
cargo build --release