<commit_before>SHELL=/bin/bash
VER=1.3-dev
HGID:=$(shell hg parents -R . --template "{node|short}" | sed 's/.*/\\newcommand{\\hgid}{${VER} (&)}/')
LATEXMK=./scripts/latexmk.pl
LATEXMKOPTS=-e '$$latex=q/latex --halt-on-error %O %S/'

NAME=manual
ifeq ($(OSTYPE),darwin)
CWD=$(shell pwd)
ND=$(subst work/votca_ct,Dropbox,$(CWD))
endif

all: $(NAME).pdf
dvi: $(NAME).dvi
ps: $(NAME).ps

$(NAME).tex: hgid.tex fig_submake programs_submake theory_submake reference_submake input_submake appendix_submake titlepage.tex manual.bib           

#remove broken dvi if LATEXMK fails
.DELETE_ON_ERROR: %.dvi

%.dvi: %.tex dummy
	./abbreviate_journals.pl 
	$(LATEXMK) $(LATEXMKOPTS) -dvi $<

%.pdf: %.dvi
ifeq ($(OSTYPE),darwin)
	dvips $(NAME).dvi
	ps2pdf $(NAME).ps
	mkdir -p $(ND)
	cp $(NAME).pdf $(ND)
else
	dvipdf $*
endif


%_submake:
	$(MAKE) $(MFLAGS) -C $*

%_subclean:
	rm -f *.backup
	$(MAKE) $(MFLAGS) -C $* clean

qclean:
	$(LATEXMK) -C $(NAME).tex

clean: qclean reference_subclean fig_subclean programs_subclean theory_subclean reference_subclean input_subclean
	rm -f $(NAME).fdb_latexmk $(NAME).brf literature_short.bib literature.bib
	rm -f hgid.tex
	rm -f *~

tar: all
	rm -f $(NAME).tar.gz
	#dirty sed hack ahead to grep files used by latexmk to produce the pdf<commit_msg>make: added dummy install rule<commit_after>SHELL=/bin/bash
VER=1.3-dev
HGID:=$(shell hg parents -R . --template "{node|short}" | sed 's/.*/\\newcommand{\\hgid}{${VER} (&)}/')
LATEXMK=./scripts/latexmk.pl
LATEXMKOPTS=-e '$$latex=q/latex --halt-on-error %O %S/'

NAME=manual
ifeq ($(OSTYPE),darwin)
CWD=$(shell pwd)
ND=$(subst work/votca_ct,Dropbox,$(CWD))
endif

all: $(NAME).pdf
dvi: $(NAME).dvi
ps: $(NAME).ps

$(NAME).tex: hgid.tex fig_submake programs_submake theory_submake reference_submake input_submake appendix_submake titlepage.tex manual.bib           

#remove broken dvi if LATEXMK fails
.DELETE_ON_ERROR: %.dvi

%.dvi: %.tex dummy
	./abbreviate_journals.pl 
	$(LATEXMK) $(LATEXMKOPTS) -dvi $<

%.pdf: %.dvi
ifeq ($(OSTYPE),darwin)
	dvips $(NAME).dvi
	ps2pdf $(NAME).ps
	mkdir -p $(ND)
	cp $(NAME).pdf $(ND)
else
	dvipdf $*
endif


%_submake:
	$(MAKE) $(MFLAGS) -C $*

%_subclean:
	rm -f *.backup
	$(MAKE) $(MFLAGS) -C $* clean

qclean:
	$(LATEXMK) -C $(NAME).tex

install: all
	@echo "$(NAME).pdf is ready to use, no need to install it."

clean: qclean reference_subclean fig_subclean programs_subclean theory_subclean reference_subclean input_subclean
	rm -f $(NAME).fdb_latexmk $(NAME).brf literature_short.bib literature.bib
	rm -f hgid.tex
	rm -f *~

tar: all
	rm -f $(NAME).tar.gz
	#dirty sed hack ahead to grep files used by latexmk to produce the pdf
{'fraction_non_alphanumeric': 0.17169811320754716, 'fraction_numerical': 0.0022641509433962265, 'mean_word_length': 4.302, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1604030', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1067, 'n_words': 268}