File: 51_autohandle_MANIFEST.pl

package info (click to toggle)
libdbix-class-perl 0.082841-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 5,236 kB
  • sloc: perl: 26,763; sql: 322; makefile: 10
file content (23 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# make sure manifest is deleted and generated anew on distdir
# preparation, and is deleted on realclean

postamble <<"EOM";

fresh_manifest : remove_manifest 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
1;