| | 141 | my @srcdirs = grep {-d} glob("src"), glob("src/*"), glob("src/*/*"), glob("src/*/*/*"); |
| | 142 | my @srcfiles = map { glob("$_/*.*hs") } @srcdirs; |
| | 143 | push @srcfiles, map { glob("$_/*.*hs-boot") } @srcdirs; |
| | 144 | push @srcfiles, map { map { substr($_, 0, -1) } glob("$_/*.*hsc") } @srcdirs; |
| | 145 | |
| | 146 | my $version_h = "src/Pugs/pugs_version.h"; |
| | 147 | my $config_h = "src/Pugs/pugs_config.h"; |
| | 148 | |
| 143 | | pugs$Config{_exe} :: src/Pugs/Config.hs src/Pugs/Prelude.hs |
| 144 | | \t\$(RM_F) dist/build/pugs/pugs$Config{_exe} |
| 145 | | \t\$(RM_F) Pugs.cabal |
| 146 | | \t\$(CP) Pugs.cabal.in Pugs.cabal |
| 147 | | \t./Setup$Config{_exe} configure --user |
| 148 | | \t./Setup$Config{_exe} build |
| 149 | | \t\$(CP) dist/build/pugs/pugs$Config{_exe} . |
| | 151 | pugs_requirements : @srcfiles $version_h $config_h config.yml src/Pugs/Config.hs src/Pugs/Prelude.hs |
| | 152 | |
| | 153 | $config_h : lib/Perl6/Pugs.pm util/config_h.pl |
| | 154 | \$(PERL) util/config_h.pl "$ghc $ghc_flags" |
| | 155 | |
| | 156 | $version_h : |
| | 157 | \$(PERL) util/version_h.pl $version_h |
| | 158 | |
| | 159 | pugs$Config{_exe} :: pugs_requirements build_perl5 |
| | 160 | \$(RM_F) dist/build/pugs/pugs$Config{_exe} |
| | 161 | \$(RM_F) Pugs.cabal |
| | 162 | \$(CP) Pugs.cabal.in Pugs.cabal |
| | 163 | ./Setup$Config{_exe} configure --user |
| | 164 | ./Setup$Config{_exe} build |
| | 165 | \$(CP) dist/build/pugs/pugs$Config{_exe} . |