]> git.ipfire.org Git - people/stevee/pakfire.git/blob - Makeconfig
Cleanup database and add indexes.
[people/stevee/pakfire.git] / Makeconfig
1
2 PACKAGE_NAME = pakfire
3 PACKAGE_VERSION = 0.9.25
4 PACKAGE_AUTHOR = IPFire.org Team
5 PACKAGE_AUTHOR_EMAIL = info@ipfire.org
6 PACKAGE_URL = http://git.ipfire.org/?p=pakfire.git;a=summary
7 PACKAGE_VERSION_FILE = pakfire/__version__.py
8
9 PREFIX ?= /usr
10
11 # Are we running on Debian?
12 DEBIAN = $(shell test -e /etc/debian_version && echo 1 || echo 0)
13
14 CC = gcc
15 CFLAGS ?= -O2 -fPIC -pipe
16 MACHINE = $(shell uname -m)
17
18 ifeq "$(DEBIAN)" "0"
19 ifeq "$(MACHINE)" "x86_64"
20 LIBDIR = $(PREFIX)/lib64
21 else
22 LIBDIR = $(PREFIX)/lib
23 endif
24 else
25 LIBDIR = $(PREFIX)/lib
26 endif
27
28 # Get the version and configuration of the python interpreter.
29 PYTHON_VERSION = $(shell python -c "import platform; print '.'.join(platform.python_version_tuple()[:2])")
30 ifeq "$(PYTHON_VERSION)" ""
31 $(error Could not determine the version of the python interpreter.)
32 endif
33
34 PYTHON_CC = $(CC) -pthread -fPIC -std=c99
35 PYTHON_CFLAGS = $(shell python-config --cflags)
36 PYTHON_MODULES = pakfire pakfire/packages pakfire/repository
37 ifeq "$(DEBIAN)" "1"
38 PYTHON_DIR = $(LIBDIR)/python$(PYTHON_VERSION)/dist-packages
39 else
40 PYTHON_DIR = $(LIBDIR)/python$(PYTHON_VERSION)/site-packages
41 endif
42 PYTHON_FILES = $(addsuffix /*.py,$(addprefix python/,$(PYTHON_MODULES)))
43 PYTHON_FILES += tools/pakfire-multicall.py
44
45 # The place, where all internally used scripts and bins are copied.
46 SCRIPT_DIR = $(PREFIX)/lib/$(PACKAGE_NAME)
47
48 TOP := $(dir $(lastword $(MAKEFILE_LIST)))
49
50 # A list of all files that contain translations and need to
51 # be indexed.
52 TRANS_FILES = $(PYTHON_FILES) python/src/*.c
53
54 # systemd unit files
55 UNIT_FILES = $(wildcard systemd/*.service)