Software /
code /
verse
Annotate
Makefile @ 372:0ce6d4a1e2fd
Makefile: Add 'install' target
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 01 Jan 2016 15:41:04 +0000 |
parent | 371:88bcf9fbdd07 |
child | 373:39090da18b83 |
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 |
370
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 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
|
4 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
|
5 |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
6 all: verse.lua |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
7 |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
8 verse.lua: $(SOURCE_FILES) |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
9 ./buildscripts/squish |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
10 |
372
0ce6d4a1e2fd
Makefile: Add 'install' target
Matthew Wild <mwild1@gmail.com>
parents:
371
diff
changeset
|
11 install: verse.lua |
0ce6d4a1e2fd
Makefile: Add 'install' target
Matthew Wild <mwild1@gmail.com>
parents:
371
diff
changeset
|
12 install -t $(LUA_DIR) -m 644 $^ |
0ce6d4a1e2fd
Makefile: Add 'install' target
Matthew Wild <mwild1@gmail.com>
parents:
371
diff
changeset
|
13 |
370
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
14 clean: |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
15 rm verse.lua |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
16 |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
17 $(MISSING_FILES): |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
18 mkdir -p "$(@D)" |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
19 wget "$(PROSODY_URL)$@" -O "$@" |
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 rsm.lib.lua: |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
22 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
|
23 |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
24 release: $(MISSING_FILES) |
75e7917761c0
Makefile, buildscripts/squish: Add Makefile and squish to the repo
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
25 |
372
0ce6d4a1e2fd
Makefile: Add 'install' target
Matthew Wild <mwild1@gmail.com>
parents:
371
diff
changeset
|
26 .PHONY: all release clean install |