summaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile
index dc31b6b0d..c6c01dca0 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,14 +1,17 @@
ROOTDEST = /export
+DEST = $(ROOTDEST)/Mandrake/mdkinst
RPMS = $(wildcard $(ROOTDEST)/Mandrake/RPMS/*.rpm)
+LOCALFILES = ddcprobe/ddcxinfos
BASE = $(ROOTDEST)/Mandrake/base
.PHONY: clean install
-all: $(BASE)/depslist $(BASE)/hdlist
+all: $(BASE)/depslist $(BASE)/hdlist install
install:
- $(MAKE) gendepslist rpm2header
+ $(MAKE) gendepslist rpm2header ddcprobe/ddcxinfos
install make_mdkinst_stage2 gendepslist rpm2header genhdlist $(ROOTDEST)/misc
+ install -s $(LOCALFILES) $(DEST)/usr/bin
gendepslist: %: %.cc
$(CXX) -I/usr/include/rpm $(CFLAGS) $< -lrpm -ldb1 -lz -o $@
@@ -16,6 +19,9 @@ gendepslist: %: %.cc
rpm2header: %: %.c
$(CC) -I/usr/include/rpm $(CFLAGS) $< -lrpm -ldb1 -lz -o $@
+ddcprobe/ddcxinfos:
+ $(MAKE) -C ddcprobe ddcxinfos
+
$(BASE)/depslist: $(BASE)/hdlist gendepslist
./gendepslist -h $@ $<