Annotate

Makefile @ 506:3610196c5e83 default tip

Merge with Zash.
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Sat, 08 Jul 2023 02:17:52 +0700
parent 502:783188a44b0a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
371
88bcf9fbdd07 configure, Makefile: Add configure script to set build-time variables
Matthew Wild <mwild1@gmail.com>
parents: 370
diff changeset
1 include config.unix
88bcf9fbdd07 configure, Makefile: Add configure script to set build-time variables
Matthew Wild <mwild1@gmail.com>
parents: 370
diff changeset
2
373
39090da18b83 Makefile: Error if config.unix is missing
Matthew Wild <mwild1@gmail.com>
parents: 372
diff changeset
3 ifndef SQUISH
39090da18b83 Makefile: Error if config.unix is missing
Matthew Wild <mwild1@gmail.com>
parents: 372
diff changeset
4 $(error Please run ./configure first)
39090da18b83 Makefile: Error if config.unix is missing
Matthew Wild <mwild1@gmail.com>
parents: 372
diff changeset
5 endif
39090da18b83 Makefile: Error if config.unix is missing
Matthew Wild <mwild1@gmail.com>
parents: 372
diff changeset
6
370
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
7 SOURCE_FILES=$(shell $(SQUISH) --list-files)
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
8 MISSING_FILES=$(shell $(SQUISH) --list-missing-files)
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
9
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
10 all: verse.lua
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
11
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
12 verse.lua: $(SOURCE_FILES)
419
bf2fe3fc2f73 Makefile: Use configured squish path
Matthew Wild <mwild1@gmail.com>
parents: 416
diff changeset
13 $(SQUISH)
370
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
14
372
0ce6d4a1e2fd Makefile: Add 'install' target
Matthew Wild <mwild1@gmail.com>
parents: 371
diff changeset
15 install: verse.lua
0ce6d4a1e2fd Makefile: Add 'install' target
Matthew Wild <mwild1@gmail.com>
parents: 371
diff changeset
16 install -t $(LUA_DIR) -m 644 $^
0ce6d4a1e2fd Makefile: Add 'install' target
Matthew Wild <mwild1@gmail.com>
parents: 371
diff changeset
17
370
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
18 clean:
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
19 rm verse.lua
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
20
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
21 $(MISSING_FILES):
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
22 mkdir -p "$(@D)"
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
23 wget "$(PROSODY_URL)$@" -O "$@"
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
24
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
25 release: $(MISSING_FILES)
376
c61f8aaf772c Makefile: Remove config.unix when making a release
Matthew Wild <mwild1@gmail.com>
parents: 373
diff changeset
26 rm config.unix
370
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
27
372
0ce6d4a1e2fd Makefile: Add 'install' target
Matthew Wild <mwild1@gmail.com>
parents: 371
diff changeset
28 .PHONY: all release clean install