Skip to content
Snippets Groups Projects
Commit 14ec70d5 authored by witiko's avatar witiko
Browse files

Added a root README file with licensing information.

Updated `dist` make target to reflect the directory structure changes.
parent d43587b4
No related branches found
No related tags found
No related merge requests found
README 0 → 100644
This material is subject to the LaTeX Project Public License.
\ No newline at end of file
......@@ -7,7 +7,9 @@ LOGOFILES=logo/*/*.eps logo/*/color/*.eps logo/*/*.pdf logo/*/color/*.pdf
LOCALEFILES=locale/*.def locale/*/*.def locale/*/*/*.def
DTXFILES=*.dtx locale/*.dtx style/*.dtx style/*/*.dtx
INSFILES=*.ins locale/*.ins style/*.ins style/*/*.ins
MAKEFILES=Makefile */Makefile */*/Makefile */*/*/Makefile
MAKEFILES=Makefile */Makefile */*/Makefile */*/*/Makefile ../Makefile
READMES=../README
MISCELLANEOUS=$(READMES) ../example.tex
RESOURCES=$(STYLEFILES) $(LOGOFILES) $(LOCALEFILES)
SOURCEFILES=$(DTXFILES) $(INSFILES) docstrip.cfg
AUXFILES=fithesis.aux fithesis.log fithesis.toc fithesis.ind fithesis.idx fithesis.out fithesis.ilg fithesis.gls fithesis.glo fithesis.hd
......@@ -34,8 +36,10 @@ explode: fithesis3.cls $(PDFFILES)
test: all
cd test; make
# This pseudo-target creates the distribution archives.
dist: all $(TDSFILE) $(DISTFILE)
# This pseudo-target creates the distribution archive.
dist: all
make $(TDSFILE) $(DISTFILE)
rm $(TDSFILE)
# This target creates the class files.
fithesis3.cls: fithesis.ins fithesis.dtx
......@@ -57,10 +61,10 @@ $(TDSFILE): $(LATEXFILES) $(SOURCEFILES) $(PDFFILES) $(PDFSOURCES)
mv "$$DIR"/$@ $@ && rm -rf "$$DIR"
# This target generates a distribution file
$(DISTFILE): $(LATEXFILES) $(SOURCEFILES) $(MAKEFILES) $(PDFFILES) $(PDFSOURCES)
DIR=`mktemp -d` && mkdir "$$DIR/fithesis3" && \
$(DISTFILE): $(LATEXFILES) $(SOURCEFILES) $(MAKEFILES) $(PDFFILES) $(PDFSOURCES) $(MISCELLANEOUS)
DIR=`mktemp -d` && mkdir --parents "$$DIR/fithesis3/fithesis3" && \
cp --verbose $(TDSFILE) "$$DIR" && \
cp --parents --verbose $^ "$$DIR/fithesis3" && \
cp --parents --verbose $^ "$$DIR/fithesis3/fithesis3" && \
(cd "$$DIR" && zip -r -v -nw $@ *) && \
mv "$$DIR"/$@ $@ && rm -rf "$$DIR"
......@@ -120,7 +124,7 @@ clean:
# This pseudo-target removes the distribution archives.
dist-clean:
rm -f $(DISTFILE) $(TDSFILE)
rm -f $(DISTFILE)
# This pseudo-target removes any makeable files.
implode: clean dist-clean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment