aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 990971736b2e711d0446f1e44f1e8080f2d842c8 (about) (plain) (blame)
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
# commands
INSTALL := install
MD	:= markdown
RM	:= rm

all: udev/ykfde README.html

udev/ykfde: udev/ykfde.c
	$(MAKE) -C udev

README.html: README.md
	$(MD) README.md > README.html

install: install-bin install-doc

install-bin: udev/ykfde
	$(MAKE) -C udev install
	$(INSTALL) -D -m0644 conf/ykfde.conf $(DESTDIR)/etc/ykfde.conf
	$(INSTALL) -D -m0755 bin/ykfde $(DESTDIR)/usr/bin/ykfde
	$(INSTALL) -D -m0644 install/ykfde $(DESTDIR)/usr/lib/initcpio/install/ykfde

install-doc: README.md README.html
	$(INSTALL) -D -m0644 README.md $(DESTDIR)/usr/share/doc/ykfde/README.md
	$(INSTALL) -D -m0644 README.html $(DESTDIR)/usr/share/doc/ykfde/README.html

clean:
	$(MAKE) -C udev clean
	$(RM) -f README.html