summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile19
1 files changed, 7 insertions, 12 deletions
diff --git a/tools/Makefile b/tools/Makefile
index f42f2f2c7..e3241f872 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -13,28 +13,23 @@ $(DIRS):
make -C $@
install:
- $(MAKE) rpm2header
- install make_mdkinst_stage2 build_archive gendepslist2 rpm2header genhdlist_cz2 $(ROOTDEST)/misc
+ install make_mdkinst_stage2 $(ROOTDEST)/misc
+ cd /usr/bin ; install build_archive $(ROOTDEST)/misc || { echo "build_archive is missing"; exit 1; }
+ cd /usr/bin ; install gendepslist2 rpm2header genhdlist_cz2 $(ROOTDEST)/misc || { echo "install rpmtools first!" ; exit 1; }
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)/depslist: $(BASE)/hdlist.cz2
+ gendepslist2 -o $@ $<
$(BASE)/hdlist.cz2: $(RPMS)
- $(ROOTDEST)/misc/genhdlist_cz2 --noclean --distrib $(ROOTDEST)
+ genhdlist_cz2 --noclean --distrib $(ROOTDEST)
clean:
for i in $(DIRS); do $(MAKE) -C $$i clean; done
- rm -rf *~ gendepslist xhost+ rpm2header ddcprobe/ddcxinfos */*.o
+ rm -rf *~ xhost+ ddcprobe/ddcxinfos */*.o