-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
27 lines (20 loc) · 986 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
# Portage-ng makefile
## ----------------------------------------------------------------------
## You need to have a recent version of SWI-Prolog installed. Preferably
## a development version (version 8 or higher). This Makefile will help
## you create a 'portage-ng' binary that can be installed in /usr/local
## The resulting binary can be passed several arguments (like --sync).
## When no arguments are supplied, you are dumped into a shell allowing
## you to query portage-ng and all its repositories directly.
## the Makefile.
## ----------------------------------------------------------------------
SUDO=sudo
TARGET=portage-ng
help: ## Show this help.
@sed -ne '/@sed/!s/## //p' $(MAKEFILE_LIST)
## all: build & install
all: build install
build: ## Build the application.
swipl -L8g -G8g -o $(TARGET) -O -q -f portage-ng.pl -g main --stand_alone=true -c portage-ng.pl
install: ## Install the application.
$(SUDO) cp $(TARGET) /usr/local/bin