summaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-11-15 12:47:54 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-11-15 12:47:54 +0000
commit45c48c55488e62177a3d6a2eb6928a716daf1213 (patch)
tree7856c87fd4b70afe40a2a3d2ebb145ea16209339 /tools/Makefile
parent773013b8e45a6916a74ea64152e51fb6cb951920 (diff)
downloaddrakx-45c48c55488e62177a3d6a2eb6928a716daf1213.tar
drakx-45c48c55488e62177a3d6a2eb6928a716daf1213.tar.gz
drakx-45c48c55488e62177a3d6a2eb6928a716daf1213.tar.bz2
drakx-45c48c55488e62177a3d6a2eb6928a716daf1213.tar.xz
drakx-45c48c55488e62177a3d6a2eb6928a716daf1213.zip
no_comment
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
new file mode 100644
index 000000000..c76c5fc6d
--- /dev/null
+++ b/tools/Makefile
@@ -0,0 +1,25 @@
+ROOTDEST = /export
+BASE = $(ROOTDEST)/Mandrake/base
+
+ALL = gendepslist rpm2header
+.PHONY: clean install
+
+install:
+ $(MAKE) gendepslist rpm2header
+ install make_mdkinst_stage2 gendepslist rpm2header genhdlist $(ROOTDEST)/misc
+
+gendepslist: %: %.cc
+ $(CXX) -I/usr/include/rpm $(CFLAGS) $< -lrpm -ldb1 -lz -o $@
+
+rpm2header: %: %.c
+ $(CC) -I/usr/include/rpm $(CFLAGS) $< -lrpm -ldb1 -lz -o $@
+
+$(BASE)/depslist: $(BASE)/hdlist gendepslist
+ ./gendepslist -h $@ $<
+
+$(BASE)/hdlist: $(RPMS)
+ $(MAKE) install
+ ./genhdlist $(ROOTDEST)
+
+clean:
+ rm -rf *~ gendepslist rpm2header