summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/.cvsignore2
-rw-r--r--tools/Makefile10
2 files changed, 10 insertions, 2 deletions
diff --git a/tools/.cvsignore b/tools/.cvsignore
new file mode 100644
index 000000000..e570b13fa
--- /dev/null
+++ b/tools/.cvsignore
@@ -0,0 +1,2 @@
+rpm2header
+gendepslist
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 $@ $<