Fixed custom lufs module build if lufs-devel is not yet installed.
[lufs.git] / kernel / Linux / modbin / Makefile.am
1 modbindir=$(datadir)/lufs/modbin
2
3 # FIXME: We need double make invocation to properly build files and resolve the wildcard during 'install'!
4 modbin_DATA=$(wildcard lufs-*.o)
5 CLEANFILES=$(modbin_DATA)
6
7 all-local: *.o
8
9 *.o:
10         $(srcdir)/../prepmod --modbindir=. --basedir=$(srcdir)/.. \
11                         --kernel-gcc-args="-I$(top_srcdir)/include" \
12                         --prebuild \
13                         $(wildcard /usr/src/kernel-headers-*) \
14                         $(wildcard $(top_srcdir)/../kernel-source-*.rpm)
15