938cab5d682a4b9680a60bea08f79e3f7a07d711
[dbsrgits/DBIx-Class.git] / maint / Makefile.PL.inc / 51_autohandle_MANIFEST.pl
1 # make sure manifest is deleted and generated anew on distdir
2 # preparation, and is deleted on realclean
3
4 postamble <<"EOM";
5
6 fresh_manifest : remove_manifest manifest
7
8 remove_manifest :
9 \t\$(RM_F) MANIFEST
10
11 realclean :: remove_manifest
12
13 manifest : check_manifest_is_lone_target
14
15 check_manifest_is_lone_target :
16 \t\$(NOECHO) @{[
17   $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)')
18 ]}
19
20 EOM
21
22 # keep the Makefile.PL eval happy
23 1;