Makefile

Thu, 10 Jun 2021 11:58:23 +0200

author
Kim Alvefur <zash@zash.se>
date
Thu, 10 Jun 2021 11:58:23 +0200
changeset 445
b119dc4d8bc2
parent 419
bf2fe3fc2f73
permissions
-rw-r--r--

plugins.smacks: Don't warn about zero stanzas acked

It's only if the count somehow goes backwards that something is really
wrong. An ack for zero stanzas is fine and we don't need to do anything.

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 rsm.lib.lua:
416
92ce569b9b73 buildsys: Update to fetch from Prosody 0.10 branch
Kim Alvefur <zash@zash.se>
parents: 376
diff changeset
26 wget https://hg.prosody.im/prosody-0.10/raw-file/0.10.1/util/rsm.lua -O rsm.lib.lua
370
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
27
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
28 release: $(MISSING_FILES)
376
c61f8aaf772c Makefile: Remove config.unix when making a release
Matthew Wild <mwild1@gmail.com>
parents: 373
diff changeset
29 rm config.unix
370
75e7917761c0 Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
30
372
0ce6d4a1e2fd Makefile: Add 'install' target
Matthew Wild <mwild1@gmail.com>
parents: 371
diff changeset
31 .PHONY: all release clean install

mercurial