-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (22 loc) · 909 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# Project: xonotic-map-repository-docker
# Copyright: (c) 2017 by Tyler "-z-" Mulligan <z@xnz.me> and contributors
# License: MIT, see the LICENSE file for more details
#
# A GNU Makefile for the project.
#
DEV_DIR=~/dev
SANDBOX = $(DEV_DIR)/xonotic-map-repository-docker
REPO_API = $(DEV_DIR)/xonotic-map-repository-api
REPO_WEBSITE = $(DEV_DIR)/xonotic-map-repository-web
.PHONY: help clean build
help:
@echo "Use \`make <target>', where <target> is one of the following:"
@echo " clean - remove all generated files"
@echo " build - build packages"
clean:
@find projects/packages/ -name '*.tar.gz' -exec rm -f {} +
@find projects/builds/ -name '*.local' -exec rm -Rf {} +
build:
bash -c "cd $(REPO_API) && venv/bin/python setup.py sdist --dist-dir $(SANDBOX)/projects/packages"
rsync -azvh --exclude=*resources* $(REPO_WEBSITE)/ projects/builds/www.xonotic-repo.local