summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-05-31 14:24:56 +0000
committerNicholas Clark <nick@ccl4.org>2004-05-31 14:24:56 +0000
commitca12659b0e397cc5b28088111fe498237a2180dd (patch)
tree59b33ddd20cbdee41a6f0b226b04b4b587ae8aeb /vms
parent25207203046d8f94b03829079bb348bf2c1b204b (diff)
downloadperl-ca12659b0e397cc5b28088111fe498237a2180dd.tar.gz
Run mktables as part of the build process.
Don't ship any of the files that it generates in lib/unicore p4raw-id: //depot/perl@22879
Diffstat (limited to 'vms')
-rw-r--r--vms/descrip_mms.template17
1 files changed, 16 insertions, 1 deletions
diff --git a/vms/descrip_mms.template b/vms/descrip_mms.template
index f060064bc4..8aa9e0dcaf 100644
--- a/vms/descrip_mms.template
+++ b/vms/descrip_mms.template
@@ -329,8 +329,16 @@ CRTLOPTS =,$(CRTL)/Options
$(CC) $(CFLAGS) $(MMS$SOURCE_NAME).c
.endif
+unidatafiles1 = [.lib.unicore]Canonical.pl [.lib.unicore]Exact.pl
+unidatafiles2 = [.lib.unicore]Properties [.lib.unicore]Decomposition.pl
+unidatafiles3 = [.lib.unicore]CombiningClass.pl [.lib.unicore]Name.pl
+unidatafiles = $(unidatafiles1) $(unidatafiles2) $(unidatafiles3)
+
+# Directories of Unicode data files generated by mktables
+unidatadirs = lib/unicore/To lib/unicore/lib
+
# Modules which must be installed before we can build extensions
-LIBPREREQ = $(ARCHDIR)Config.pm [.lib.VMS]Filespec.pm [.lib]DynaLoader.pm [.lib]XSLoader.pm [.lib]lib.pm [.lib.ExtUtils]XSSymSet.pm $(ARCHDIR)vmspipe.com [.lib]re.pm
+LIBPREREQ = $(ARCHDIR)Config.pm [.lib.VMS]Filespec.pm [.lib]DynaLoader.pm [.lib]XSLoader.pm [.lib]lib.pm [.lib.ExtUtils]XSSymSet.pm $(ARCHDIR)vmspipe.com [.lib]re.pm $(unidatafiles)
utils1 = [.lib.pod]perldoc.com [.lib.ExtUtils]Miniperl.pm [.utils]c2ph.com [.utils]h2ph.com
utils2 = [.utils]h2xs.com [.utils]libnetcfg.com [.lib]perlbug.com [.lib]perlcc.com [.utils]dprofpp.com
@@ -478,6 +486,11 @@ $(ARCHDIR)Config.pm : [.lib]Config.pm
$(ARCHDIR)vmspipe.com : vmspipe.com
Copy $(MMS$SOURCE) $(ARCHDIR)
+# Aargh. I don't know how (if) it's possible to change directory
+# So make the perl script do it
+$(unidatafiles) : $(MINIPERL_EXE) [.lib]Config.pm [.lib.unicore]mktables
+ $(MINIPERL) [.lib.unicore]mktables "-C" lib "-C" unicore
+
[.ext.dynaloader]dl_vms.c : [.ext.dynaloader]dl_vms.xs $(ARCHDIR)Config.pm [.lib.ExtUtils]XSSymSet.pm $(MINIPERL_EXE)
$(XSUBPP) $(MMS$SOURCE) >$(MMS$TARGET)
@@ -1655,6 +1668,8 @@ realclean : clean
- If F$Search("Config.H").nes."" Then Delete/NoConfirm/Log Config.H;*
- If F$Search("Config.SH").nes."" Then Delete/NoConfirm/Log Config.SH;*
- $(MINIPERL) -e "use File::Path; rmtree(\@ARGV,1,0);" config
+ - $(MINIPERL) -e "foreach (@ARGV) {unlink qq{$_;*} or warn qq{unlink $_: $!}}" $(unidatafiles)
+ - $(MINIPERL) -e "use File::Path; rmtree(\@ARGV,1,0);" $(unidatadirs)
- If F$Search("Descrip.MMS").nes."" Then Delete/NoConfirm/Log Descrip.MMS;*
- If F$Search("make_ext.Com").nes."" Then Delete/NoConfirm/Log make_ext.Com;*
- If F$Search("extra_pods.Com").nes."" Then Delete/NoConfirm/Log extra_pods.Com;*