forked from rhinstaller/hello-world-anaconda-addon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 1.03 KB
/
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
30
31
32
33
TMPDIR := $(shell mktemp -d)
OUTDIR := $(shell pwd)
BASEDIR := $(TMPDIR)/usr/share/anaconda/
ADDONDIR := $(BASEDIR)/addons/
SERVICESDIR := $(BASEDIR)/dbus/services/
CONFDIR := $(BASEDIR)/dbus/confs/
PYTHON?=python3
_default:
@echo "*** Building updates image ***"
@echo -n "Working..."
@mkdir -p $(ADDONDIR)
@cp -par org_fedora_hello_world $(ADDONDIR)
@mkdir -p $(SERVICESDIR)
@cp -pa data/org.fedoraproject.Anaconda.Addons.*.service $(SERVICESDIR)
@mkdir -p $(CONFDIR)
@cp -pa data/org.fedoraproject.Anaconda.Addons.*.conf $(CONFDIR)
@cd $(TMPDIR) ; find . | cpio -c -o --quiet | gzip -9 > $(OUTDIR)/hello_world_addon_updates.img
@rm -rf $(TMPDIR)
@echo " done."
@echo "Put hello_world_addon_updates.img up where you can use it via"
@echo " inst.updates=<path>/hello_world_addon_updates.img"
.PHONY: check
check:
@echo "*** Running pylint ***"
$(PYTHON) -m pylint org_fedora_hello_world/
# Using git clone of Anaconda will give you import errors. In such case, run the check this way:
# PYTHONPATH=/my/anaconda/git/clone make check