Wed, 13 Jan 2016 00:45:54 +0100
util.random: Use /dev/urandom or LuaCrypto
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) |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
13 | ./buildscripts/squish |
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: |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
26 | wget https://hg.prosody.im/prosody-modules/raw-file/tip/mod_mam/rsm.lib.lua -O rsm.lib.lua |
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 |