blob: f42f2f2c7ac67260f1d1f3158c9b72ddd898ee7b (
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
|
ROOTDEST = /export
DEST = $(ROOTDEST)/Mandrake/mdkinst
RPMS = $(wildcard $(ROOTDEST)/Mandrake/RPMS/*.rpm)
DIRS = ddcprobe pnp_serial
BASE = $(ROOTDEST)/Mandrake/base
CFLAGS = -Wall
.PHONY: clean install $(DIRS)
all: $(BASE)/depslist $(BASE)/hdlist.cz2 $(DIRS) xhost+ install
$(DIRS):
make -C $@
install:
$(MAKE) rpm2header
install make_mdkinst_stage2 build_archive gendepslist2 rpm2header genhdlist_cz2 $(ROOTDEST)/misc
mkdir -p $(DEST)/usr/bin
xhost+: %: %.c
$(CC) $(CFLAGS) $< -L/usr/X11R6/lib -lX11 -o $@
gendepslist: %: %.cc
$(CXX) -I/usr/include/rpm $(CFLAGS) $< -lrpm -ldb1 -lz -o $@
rpm2header: %: %.c
$(CC) -I/usr/include/rpm $(CFLAGS) $< -lrpm -ldb1 -lz -o $@
ddcprobe/ddcxinfos:
$(MAKE) -C ddcprobe ddcxinfos
$(BASE)/depslist: $(BASE)/hdlist.cz2 gendepslist2
./gendepslist2 -o $@ $<
$(BASE)/hdlist.cz2: $(RPMS)
$(ROOTDEST)/misc/genhdlist_cz2 --noclean --distrib $(ROOTDEST)
clean:
for i in $(DIRS); do $(MAKE) -C $$i clean; done
rm -rf *~ gendepslist xhost+ rpm2header ddcprobe/ddcxinfos */*.o
|