Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Makefile #47

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
FILE=main.tex
DVIFILE=main.dvi
PSFILE=main.ps
PSBOOKFILE=main_book.ps
OUTPUT_DIR=output

all: dvi
all: pdf

dvi:
latex $(FILE)
makeindex main
latex $(FILE)
@echo "Compiling .tex to .dvi"
mkdir -p $(OUTPUT_DIR)
latex -output-directory=$(OUTPUT_DIR) $(FILE)
makeindex $(OUTPUT_DIR)/main
latex -output-directory=$(OUTPUT_DIR) $(FILE)

ps: dvi
dvips $(DVIFILE)
@echo "Converting .dvi to .ps"
dvips $(OUTPUT_DIR)/main.dvi -o $(OUTPUT_DIR)/main.ps

pdf: dvi
dvipdf -sPAPERSIZE=a4 $(DVIFILE)
@echo "Compiling .dvi to .pdf with A4 paper size"
mkdir -p $(OUTPUT_DIR)
dvipdfmx -p a4 -o $(OUTPUT_DIR)/main.pdf $(OUTPUT_DIR)/main.dvi
@echo "PDF should be generated in the $(OUTPUT_DIR) directory: $(OUTPUT_DIR)/main.pdf"

booklet: ps
./ps2book.sh $(PSFILE)
ps2pdf $(PSBOOKFILE)
rm $(PSFILE) $(PSBOOKFILE) $(DVIFILE)
@echo "Creating booklet"
./ps2book.sh $(OUTPUT_DIR)/main.ps
ps2pdf $(OUTPUT_DIR)/main_book.ps $(OUTPUT_DIR)/main_book.pdf
rm $(OUTPUT_DIR)/main.ps $(OUTPUT_DIR)/main_book.ps $(OUTPUT_DIR)/main.dvi

clean:
rm -rf $(OUTPUT_DIR) *.aux *.log *.idx *.ilg *.ind *.toc *.out *.dvi *.ps *.pdf
32 changes: 32 additions & 0 deletions sange/alleDAT'erErGladeForPorter.tex
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hvad laver #49 herinde?

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
1 og 10 og 1 10
Alle Dat'er er glade for porter
men min flask' du kan stole på mig
For det er fuldstændig sandt hvad jeg siger
At min mave kun drømmer om dig

Og lidt for Dry Stout
Pilsner og Lambic
og Triple og Classic
og Pale Ale og Bock
For uden IPA
XY og XZ
og XY-XZ
og XY og X

Alle dat'er vi bliver inde om dagen
Du skal vide om aften' når jeg
Er ved bordet og set på en skærm
at jeg altid drømmer om dig

Og lidt hos Dry Stout
Pilsner og Lambic
og Triple og Classic
og Pale Ale og Bock
For uden IPA
XY og XZ
og XY-XZ
og XY og X

Alle dat'er er godt polstret
Du skal se når jeg sætter mig
at min
Loading