Mon, 04 Jan 2016 17:05:19 +0000
geoip: Improved logging
11
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
1 | SQUISH=./buildscripts/squish |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
2 | |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
3 | SOURCE_FILES=$(shell $(SQUISH) --list-files) |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
4 | MISSING_FILES=$(shell $(SQUISH) --list-missing-files) |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
5 | |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
6 | OUTPUT=build/mjpegproxy |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
7 | |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
8 | BIN_DIR=$(PREFIX)/bin |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
9 | |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
10 | all: $(OUTPUT) |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
11 | |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
12 | $(OUTPUT): build squishy $(SOURCE_FILES) |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
13 | $(SQUISH) --output=$(OUTPUT) |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
14 | |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
15 | build: |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
16 | mkdir build |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
17 | |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
18 | install: $(OUTPUT) |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
19 | install -t $(BIN_DIR) -m 655 $^ |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
20 | |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
21 | clean: |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
22 | rm $(OUTPUT) |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
23 | |
38b1768e3c43
Add Makefile and associated build scripts
Matthew Wild <mwild1@gmail.com>
parents:
diff
changeset
|
24 | .PHONY: all clean install |