]> gitweb.michael.orlitzky.com - mjotex.git/blobdiff - GNUmakefile
GNUmakefile: don't repeat BIBPATHS and MJOTEXPATHS in "make dist".
[mjotex.git] / GNUmakefile
index dd8af234683c49057a0045aa3e3919f17835cb01..25ae0893c57ccac77cf8154db73c19a4b8ad8abd 100644 (file)
@@ -202,7 +202,8 @@ check-boxes: $(PN).log
 .PHONY: check-chktex
 CHKTEX = chktex --localrc .chktexrc --quiet --inputfiles=0
 check-chktex:
-       @[ -z "$(shell $(CHKTEX) mjotex.sty)" ]
+       @chktexout=$$($(CHKTEX) $(PN).tex); \
+         test -z "$${chktexout}" || { echo "$${chktexout}" 1>&2; exit 1; }
 
 # Ensure that there are no undefined references in the document by
 # parsing the log file for said warnings.
@@ -243,4 +244,4 @@ clean:
 .PHONY: dist
 dist: $(PN).bbl
        mkdir -p dist
-       cp $(SRCS) $(PN).bbl $(BIBPATHS) $(MJOTEXPATHS) dist/
+       cp $(SRCS) $(PN).bbl dist/