Makefile 654 Bytes
Newer Older
Guido Gunther's avatar
Guido Gunther committed
1 2 3 4 5 6
#!/usr/bin/make

DOCS=\
	README.html \
	$(NULL)

7
all: check
Guido Gunther's avatar
Guido Gunther committed
8 9 10

check:
	flake8
11
	flake8 scripts/librem5-devkit-flash-image
Guido Gunther's avatar
Guido Gunther committed
12

13 14 15
install:
	mkdir -p $(DESTDIR)/etc/modules-load.d/
	install -m 0644 etc/modules-load.d/librem5-devkit.conf $(DESTDIR)/etc/modules-load.d/
Guido Gunther's avatar
Guido Gunther committed
16 17
	mkdir -p $(DESTDIR)/etc/modprobe.d/
	install -D -m 0644 etc/modprobe.d/librem5-devkit.conf $(DESTDIR)/etc/modprobe.d/
18 19
	mkdir -p $(DESTDIR)/etc/kernel/postinst.d/
	install -D -m 0755 etc/kernel/postinst.d/update-Image $(DESTDIR)/etc/kernel/postinst.d/
20

Guido Gunther's avatar
Guido Gunther committed
21 22
%.html: %.org
	emacs --batch -nw $< -f org-html-export-to-html --kill
Guido Gunther's avatar
Guido Gunther committed
23 24 25 26

# Convert to ReStructuredText
%.rst: %org
	 pandoc README.org README.rst