Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Abraxxa-proof the distbuild (disallow `make manifest dist`)

This does not work under dmake (there is no $(MAKECMDGOALS)), but it does
not seem to have adverse effects either
  • Loading branch information...
commit aab82aa7edef93b01d922e02ec6d92b748f7943a 1 parent 81fecf6
@ribasushi ribasushi authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 maint/Makefile.PL.inc/51_autohandle_MANIFEST.pl
View
7 maint/Makefile.PL.inc/51_autohandle_MANIFEST.pl
@@ -10,6 +10,13 @@
realclean :: remove_manifest
+manifest : check_manifest_is_lone_target
+
+check_manifest_is_lone_target :
+\t\$(NOECHO) @{[
+ $mm_proto->oneliner('q($(MAKECMDGOALS)) =~ /(\S*manifest\b)/ and q($(MAKECMDGOALS)) ne $1 and die qq(The DBIC build chain does not support mixing the $1 target with others\n)')
+]}
+
EOM
# keep the Makefile.PL eval happy
Please sign in to comment.
Something went wrong with that request. Please try again.