diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-10-08 16:36:30 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-10-08 16:36:30 +0000 |
commit | 17c1bdaa6ce07471dda9a55a6fff998fd50cc6e5 (patch) | |
tree | 2773ac4700f842c0b0133524c8a48eeda98d90ad /lst/Makefile | |
parent | eda213ef42bfa406e5ce4f3d5a6dca6bb3d074b8 (diff) | |
download | ldetect-lst-17c1bdaa6ce07471dda9a55a6fff998fd50cc6e5.tar ldetect-lst-17c1bdaa6ce07471dda9a55a6fff998fd50cc6e5.tar.gz ldetect-lst-17c1bdaa6ce07471dda9a55a6fff998fd50cc6e5.tar.bz2 ldetect-lst-17c1bdaa6ce07471dda9a55a6fff998fd50cc6e5.tar.xz ldetect-lst-17c1bdaa6ce07471dda9a55a6fff998fd50cc6e5.zip |
add handling of pcitable.$(arch) and usbtable.$(arch) which overrides what's in pcitable/usbtable
Diffstat (limited to 'lst/Makefile')
-rw-r--r-- | lst/Makefile | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/lst/Makefile b/lst/Makefile index 7839ed41..fa3abf8c 100644 --- a/lst/Makefile +++ b/lst/Makefile @@ -1,19 +1,33 @@ include ../Makefile.config +ARCH := $(patsubst i%86,i386,$(shell uname -m)) +ARCH := $(patsubst sparc%,sparc,$(ARCH)) + +TABLES1 = pcitable usbtable +TABLES2 = isatable pcmciatable +TABLES = $(TABLES1) $(TABLES2) +TMP_TABLES1 = $(TABLES1:%=%.tmp) +TMP_TABLES2 = $(TABLES2:%=%.tmp) +TMP_TABLES = $(TABLES:%=%.tmp) build: CardsNames clean: - rm -f *~ CardsNames + rm -f *~ CardsNames *.tmp CardsNames: Cards+ ../convert/Cards2CardsNames.pl rm -f $@ ../convert/Cards2CardsNames.pl $< > $@ chmod a-w $@ +$(TMP_TABLES1): %.tmp: % + ../convert/merge2pcitable.pl pcitable $< $<.$(ARCH) > $@ + +$(TMP_TABLES2): %.tmp: % + cp -f $< $@ -install: - for i in isatable pcitable pcmciatable usbtable; do \ +install: $(TMP_TABLES) + for i in $(TABLES); do \ (echo "# !! The original version is available in CVS at" ; \ echo "# export CVSROOT=:pserver:anoncvs@cvs.mandrakesoft.com:/home/cvs/cooker" ; \ echo "# cvs login (password \`\`cvs'')" ; \ @@ -22,7 +36,7 @@ install: echo "# export CVSROOT=:ext:LOGIN@cvs.mandrakesoft.com:/home/cvs/cooker" ; \ echo "# export CVS_RSH=ssh" ; \ echo "# cvs checkout soft/$(project)" ; \ - cat $$i \ + cat $$i.tmp \ ) > $(dir)/$$i; done install -m 644 Cards+ CardsNames MonitorsDB isdn.db $(dir) |