Apparently -i and -jN do not work on win32, what the hell
[dbsrgits/DBIx-Class-Historic.git] / maint / Makefile.PL.inc / 51_autohandle_MANIFEST.pl
index f12ee30..32745cb 100644 (file)
@@ -4,12 +4,20 @@
 postamble <<"EOM";
 
 fresh_manifest : remove_manifest manifest
+@{[ $crlf_fixup->('MANIFEST') ]}
 
 remove_manifest :
 \t\$(RM_F) MANIFEST
 
 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