summaryrefslogtreecommitdiffstats
path: root/perl-install/Makefile
diff options
context:
space:
mode:
authorpad <pad@mandriva.com>1999-09-04 14:43:15 +0000
committerpad <pad@mandriva.com>1999-09-04 14:43:15 +0000
commit2d380f59735e2e5b8637447c3db567120b6cd0d3 (patch)
tree6868da2d83a206164c20492bf4a2ab38dc01fcdb /perl-install/Makefile
parentdd60c7b883a429a626c0d2f98446f34e40aa8620 (diff)
downloaddrakx-2d380f59735e2e5b8637447c3db567120b6cd0d3.tar
drakx-2d380f59735e2e5b8637447c3db567120b6cd0d3.tar.gz
drakx-2d380f59735e2e5b8637447c3db567120b6cd0d3.tar.bz2
drakx-2d380f59735e2e5b8637447c3db567120b6cd0d3.tar.xz
drakx-2d380f59735e2e5b8637447c3db567120b6cd0d3.zip
complete on the spooldir field
Diffstat (limited to 'perl-install/Makefile')
-rw-r--r--perl-install/Makefile37
1 files changed, 19 insertions, 18 deletions
diff --git a/perl-install/Makefile b/perl-install/Makefile
index 0d5e921bc..ff95819dc 100644
--- a/perl-install/Makefile
+++ b/perl-install/Makefile
@@ -1,20 +1,21 @@
-VERSION = 2.2.10-BOOT
-SUDO = sudo
-SO_FILES = c/blib/arch/auto/c/c.so
-PMS = *.pm c/*.pm resize_fat/*.pm po/*.pm pci_probing/*.pm commands install2 diskdrake XFdrake
-ROOTDEST = /export
-DEST = $(ROOTDEST)/Mandrake/mdkinst
-STAGE2 = $(ROOTDEST)/Mandrake/base/mdkinst_stage2
+VERSION = 2.2.10-BOOT
+SUDO = sudo
+SO_FILES = c/blib/arch/auto/c/c.so
+PMS = *.pm c/*.pm resize_fat/*.pm po/*.pm pci_probing/*.pm commands install2 diskdrake XFdrake
+ROOTDEST = /export
+DEST = $(ROOTDEST)/Mandrake/mdkinst
+STAGE2 = $(ROOTDEST)/Mandrake/base/mdkinst_stage2
+BASE = $(ROOTDEST)/Mandrake/base
DESTREP4PMS = $(DEST)/usr/bin/perl-install
-PERL = perl
-LOCALFILES = $(PERL) mouseconfig
-DIRS = po pci_probing
-EXCLUDE = $(LOCALFILES) boot.img xmodmap keymaps consolefonts install
-
-CFLAGS = -Wall
+PERL = perl
+LOCALFILES = $(PERL) mouseconfig
+DIRS = po pci_probing
+EXCLUDE = $(LOCALFILES) boot.img xmodmap keymaps consolefonts install
+RPMS = $(wildcard $(ROOTDEST)/Mandrake/RPMS/*.rpm)
+CFLAGS = -Wall
override CFLAGS += -pipe
-.PHONY: all $(DIRS) tags install clean stage2 full_stage2 verify_c
+.PHONY: all $(DIRS) tags install clean stage2 full_stage2 verify_c
all: $(SO_FILES) $(DIRS)
@@ -64,11 +65,11 @@ test_pms: verify_c
verify_c:
./verify_c $(PMS)
-gendepslist: %: %.cc
+gendepslist: %: %.cc
$(CXX) -I/usr/include/rpm $(CFLAGS) $< -lrpm -ldb1 -lz -o $@
-depslist: gendepslist
- ./gendepslist $(ROOTDEST)/Mandrake/base/depslist $(ROOTDEST)/Mandrake/RPMS/*.rpm
+$(BASE)/depslist: gendepslist $(RPMS)
+ ./gendepslist $(BASE)depslist $(ROOTDEST)/Mandrake/RPMS/*.rpm
install_pms: all
for i in `perl -ne 's/sub (\w+?)_? {.*/$$1/ and print' commands.pm`; do ln -sf commands $(DEST)/usr/bin/$$i; done
@@ -154,7 +155,7 @@ as_root:
mount /dev/loop0 /mnt/initrd
chmod a+w /mnt/initrd
-full_stage2:
+full_stage2: $(BASE)/depslist
rm -rf $(DEST)
mkdir -p $(DEST)
$(MAKE) get_needed_files