blob: 7734752b35701f802d06314e13460ea32d0fa3a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
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 *.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: $(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'')" ; \
echo "# cvs checkout soft/$(project)" ; \
echo "# or" ; \
echo "# export CVSROOT=:ext:LOGIN@cvs.mandrakesoft.com:/home/cvs/cooker" ; \
echo "# export CVS_RSH=ssh" ; \
echo "# cvs checkout soft/$(project)" ; \
cat $$i.tmp \
) > $(dir)/$$i; done
install -m 644 ScannerDB Cards+ CardsNames MonitorsDB isdn.db $(dir)
|