aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-03-26 23:50:27 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-03-26 23:50:27 +0100
commit03e54da070d7ac657452e20eda59d85a48efcf63 (patch)
tree77ced9c83499c9d42368fce1d17cdd0a8975dc77 /Makefile
parentf1468a34e7be13749ee3e7e2e09517b0a0d302ac (diff)
downloadmkinitcpio-ykfde-03e54da070d7ac657452e20eda59d85a48efcf63.tar.gz
mkinitcpio-ykfde-03e54da070d7ac657452e20eda59d85a48efcf63.tar.zst
add some basic documentation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5e0e67d..9909717 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,28 @@
# commands
INSTALL := install
+MD := markdown
+RM := rm
-all: udev/ykfde
+all: udev/ykfde README.html
udev/ykfde: udev/ykfde.c
$(MAKE) -C udev
-install: udev/ykfde
+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