summaryrefslogtreecommitdiff
path: root/dviware/umddvi/makefile.3b
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /dviware/umddvi/makefile.3b
Initial commit
Diffstat (limited to 'dviware/umddvi/makefile.3b')
-rw-r--r--dviware/umddvi/makefile.3b54
1 files changed, 54 insertions, 0 deletions
diff --git a/dviware/umddvi/makefile.3b b/dviware/umddvi/makefile.3b
new file mode 100644
index 0000000000..34bb7d0b95
--- /dev/null
+++ b/dviware/umddvi/makefile.3b
@@ -0,0 +1,54 @@
+# Makefile for everything
+#
+# Eventually, it would be nice to have various targets depending on
+# the output devices, and pass that info down to the dev/ directory.
+# For now, this will do.
+DESTDIR=
+MAKE= make
+MFLAGS=
+
+# where to find the font description file
+CONFFILE=/usr/lib/tex/fonts
+# where things get installed
+BINDIR= ${DESTDIR}/usr/local/bin
+# where manuals get installed---note that `/man1' is tacked on
+# for section 1 manuals, etc
+MANDIR= ${DESTDIR}/usr/man
+
+# The subdirectories. N.B.: "lib" must appear first!
+SUBDIR= lib dev dvi
+
+OPTS= MFLAGS="${MFLAGS}" BINDIR=${BINDIR} MANDIR=${MANDIR} \
+ CONFFILE=${CONFFILE} DESTDIR=${DESTDIR} CC=${CC} ${MFLAGS}
+
+all:
+ for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${OPTS}); done
+
+install clean depend:
+ for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${OPTS} $@); done
+
+# this one is special
+conf:
+ cd dev; ${MAKE} conf
+
+# make the distribution directory -- assumes no RCS files in top level
+# `doc' is not yet ready
+dist:
+ rm -rf ../ctex_dist
+ -mkdir ../ctex_dist
+ -set -x +e; \
+ for i in *; do \
+ if [ $$i != ctex ]; then \
+ if [ -d $$i ]; then \
+ cp -r $$i ../ctex_dist; \
+ (cd ../ctex_dist/$$i; rm -rf RCS); \
+ else \
+ cp $$i ../ctex_dist; \
+ fi; \
+ fi; \
+ done
+ -cd ../ctex_dist; \
+ echo '/CONFFILE=/s,local/,,!/MANDIR= /s,local/,,!w!q' | \
+ tr ! '\012' | ed Makefile
+ -cd ../ctex_dist; make clean
+ -cd ../ctex_dist/dev; make dist