]> git.ipfire.org Git - pakfire.git/blob - python/Makefile
88e4b01d5ad45907fcbd8412b2b459458c3248d5
[pakfire.git] / python / Makefile
1
2 include ../Makeconfig
3
4 .PHONY: all
5 all: $(PACKAGE_VERSION_FILE)
6 # Build the binary parts.
7 $(MAKE) -C src
8
9 .PHONY: install
10 install: $(PACKAGE_VERSION_FILE)
11 for mod in $(PYTHON_MODULES); do \
12 mkdir -pv $(DESTDIR)$(PYTHON_DIR)/$${mod}; \
13 cp -vrf $${mod}/*.py $(DESTDIR)$(PYTHON_DIR)/$${mod} || exit; \
14 done
15
16 $(MAKE) -C src install
17
18 .PHONY: clean
19 clean:
20 rm -f $(PACKAGE_VERSION_FILE)
21
22 $(MAKE) -C src clean
23
24 $(PACKAGE_VERSION_FILE): ../Makeconfig
25 echo "# this file is autogenerated by the buildsystem" > $(PACKAGE_VERSION_FILE)
26 echo "PAKFIRE_VERSION = \"$(PACKAGE_VERSION)\"" >> $(PACKAGE_VERSION_FILE)
27