Makefile
author ville
Mon, 30 Nov 2009 20:47:46 +0000
changeset 2972 5997b2e905b0
parent 2945 c8c09366077e
child 2974 4828e0f44dc0
permissions -rw-r--r--
Add test target for running the test suite.
2936
a895ac1d11c1 Add perltidy(1) settings and a simple Makefile target for running it.
ville
parents:
diff changeset
     1
PERL_FILES = httpd/cgi-bin/check httpd/cgi-bin/sendfeedback.pl \
a895ac1d11c1 Add perltidy(1) settings and a simple Makefile target for running it.
ville
parents:
diff changeset
     2
	misc/spmpp.pl misc/docs_errors.pl misc/bundle/Makefile.PL \
a895ac1d11c1 Add perltidy(1) settings and a simple Makefile target for running it.
ville
parents:
diff changeset
     3
	misc/bundle/lib/Bundle/W3C/Validator.pm
a895ac1d11c1 Add perltidy(1) settings and a simple Makefile target for running it.
ville
parents:
diff changeset
     4
2937
f55b47ae1c23 Make perltidy backup/modify-in-place.
ville
parents: 2936
diff changeset
     5
PERLTIDY = perltidy --profile=misc/perltidyrc --backup-and-modify-in-place
2945
c8c09366077e Add perlcritic(1) profile and a Makefile target for running it.
ville
parents: 2944
diff changeset
     6
PERLCRITIC = perlcritic --profile misc/perlcriticrc
2937
f55b47ae1c23 Make perltidy backup/modify-in-place.
ville
parents: 2936
diff changeset
     7
2972
5997b2e905b0 Add test target for running the test suite.
ville
parents: 2945
diff changeset
     8
VALIDATOR_URI = http://localhost/w3c-validator/check
5997b2e905b0 Add test target for running the test suite.
ville
parents: 2945
diff changeset
     9
2936
a895ac1d11c1 Add perltidy(1) settings and a simple Makefile target for running it.
ville
parents:
diff changeset
    10
all:
a895ac1d11c1 Add perltidy(1) settings and a simple Makefile target for running it.
ville
parents:
diff changeset
    11
2972
5997b2e905b0 Add test target for running the test suite.
ville
parents: 2945
diff changeset
    12
test:
5997b2e905b0 Add test target for running the test suite.
ville
parents: 2945
diff changeset
    13
	misc/testsuite/harness.py --validator_uri=$(VALIDATOR_URI) run
5997b2e905b0 Add test target for running the test suite.
ville
parents: 2945
diff changeset
    14
2945
c8c09366077e Add perlcritic(1) profile and a Makefile target for running it.
ville
parents: 2944
diff changeset
    15
perlcritic:
c8c09366077e Add perlcritic(1) profile and a Makefile target for running it.
ville
parents: 2944
diff changeset
    16
	$(PERLCRITIC) $(PERL_FILES)
c8c09366077e Add perlcritic(1) profile and a Makefile target for running it.
ville
parents: 2944
diff changeset
    17
2939
346d705fa833 Rename tidy Makefile target to perltidy.
ville
parents: 2937
diff changeset
    18
perltidy:
2944
59f2f3666ed0 Improve "make perltidy" output.
ville
parents: 2939
diff changeset
    19
	@for file in $(PERL_FILES) ; do \
59f2f3666ed0 Improve "make perltidy" output.
ville
parents: 2939
diff changeset
    20
		echo "$(PERLTIDY) $$file" ; \
2937
f55b47ae1c23 Make perltidy backup/modify-in-place.
ville
parents: 2936
diff changeset
    21
		$(PERLTIDY) $$file ; \
2936
a895ac1d11c1 Add perltidy(1) settings and a simple Makefile target for running it.
ville
parents:
diff changeset
    22
	done