diff options
Diffstat (limited to 'tools/Makefile')
-rw-r--r-- | tools/Makefile | 25 |
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 |