summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-12-29 19:33:09 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-12-29 19:33:09 +0100
commit310b7a57bc03db660874eed67b049a910de369fd (patch)
tree39db1054602e0808b85f1336f1e4a377fa8e20f9 /Makefile
parentf567df1043b845749f9db83cbca43c46ff80fe61 (diff)
downloadmkinitcpio-ykfde-310b7a57bc03db660874eed67b049a910de369fd.tar.gz
mkinitcpio-ykfde-310b7a57bc03db660874eed67b049a910de369fd.tar.zst
introduce config.h
We now have configuration in just one place.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 60904a9..81b7412 100644
--- a/Makefile
+++ b/Makefile
@@ -2,18 +2,25 @@
INSTALL := install
MD := markdown
RM := rm
+CP := cp
# this is just a fallback in case you do not use git but downloaded
# a release tarball...
VERSION := 0.5.0
-all: bin/ykfde udev/ykfde README.html
+all: bin/ykfde bin/ykfde-cpio udev/ykfde README.html
-bin/ykfde: bin/ykfde.c
+bin/ykfde: bin/ykfde.c config.h
$(MAKE) -C bin
-udev/ykfde: udev/ykfde.c
+bin/ykfde-cpio: bin/ykfde-cpio.c config.h
+ $(MAKE) -C bin
+
+udev/ykfde: udev/ykfde.c config.h
$(MAKE) -C udev
+config.h: config.def.h
+ $(CP) config.def.h config.h
+
README.html: README.md
$(MD) README.md > README.html