blob: 4bc1d28b73c6e7d84ad9740a73313f1450f9f92a (
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
29
30
31
32
33
34
35
36
|
# commands
INSTALL := install
MD := markdown
RM := rm
# this is just a fallback in case you do not use git but downloaded
# a release tarball...
VERSION := 0.3.1
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) -d -m0700 $(DESTDIR)/etc/ykfde.d/
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
release:
git archive --format=tar.xz --prefix=mkinitcpio-ykfde-$(VERSION)/ $(VERSION) > mkinitcpio-ykfde-$(VERSION).tar.xz
gpg -ab mkinitcpio-ykfde-$(VERSION).tar.xz
|