summaryrefslogtreecommitdiffstats
path: root/lst/Makefile
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-07 14:02:31 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-07 14:02:31 +0000
commit7612ba59237f194a6391f12975a3917ebb7692f8 (patch)
tree636791f6465ed34d23649a3e684c1126107ef90f /lst/Makefile
parent7a5b9a469ed86f4e16cbde7c39b77fe2545cad32 (diff)
downloadldetect-lst-7612ba59237f194a6391f12975a3917ebb7692f8.tar
ldetect-lst-7612ba59237f194a6391f12975a3917ebb7692f8.tar.gz
ldetect-lst-7612ba59237f194a6391f12975a3917ebb7692f8.tar.bz2
ldetect-lst-7612ba59237f194a6391f12975a3917ebb7692f8.tar.xz
ldetect-lst-7612ba59237f194a6391f12975a3917ebb7692f8.zip
use fallback-modules.alias to build preferred-modules.alias
Diffstat (limited to 'lst/Makefile')
-rw-r--r--lst/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/lst/Makefile b/lst/Makefile
index 559e1bc8..ceaedfaa 100644
--- a/lst/Makefile
+++ b/lst/Makefile
@@ -15,7 +15,7 @@ TMP_TABLES = $(TABLES:%=%.tmp)
build: preferred-modules.alias
clean:
- rm -f *~ *.tmp ScannerDB.gz preferred-modules.alias
+ rm -f *~ *.tmp ScannerDB.gz preferred-modules.alias fallback-modules.alias
check:
@../convert/merge2pcitable.pl pcitable pcitable.x86_64 pcitable.x86_64 > .pcitable
@@ -27,7 +27,10 @@ check:
@cd ../convert; ./verify_Cards.pl
@rm -f .pcitable .usbtable
-preferred-modules.alias: hardcoded-modules.alias
+fallback-modules.alias:
+ cp `ls -tr /lib/modules/*/modules.alias | tail -1` fallback-modules.alias
+
+preferred-modules.alias: hardcoded-modules.alias fallback-modules.alias
@../convert/uniquify-modalias.pl > $@ 2>undecided.alias
@cat hardcoded-modules.alias >> $@
@@ -55,5 +58,5 @@ install: $(TMP_TABLES) $(TABLES3)
install -m 644 ScannerDB.gz scannerconfigs Cards+ MonitorsDB isdn.db $(dir)
- install -m 644 `ls -tr /lib/modules/*/modules.alias | tail -1` $(dir)/fallback-modules.alias
+ install -m 644 fallback-modules.alias $(dir)/fallback-modules.alias
install -m 644 preferred-modules.alias $(dir)/preferred-modules.alias