summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/Makefile.in
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-10 18:49:48 +0000
committerKarl Berry <karl@freefriends.org>2019-01-10 18:49:48 +0000
commit8d656f7b22badc7a1e4e48811521048ef3df7101 (patch)
tree207c9332ac340eef8b84e90d67a0f0c6a734e547 /Build/source/utils/asymptote/Makefile.in
parentc75ad7aa4d5821b7c4034c949a5ed2401e589bea (diff)
asy 2.47 sources
git-svn-id: svn://tug.org/texlive/trunk@49658 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/Makefile.in')
-rw-r--r--Build/source/utils/asymptote/Makefile.in42
1 files changed, 27 insertions, 15 deletions
diff --git a/Build/source/utils/asymptote/Makefile.in b/Build/source/utils/asymptote/Makefile.in
index fb02d79e3eb..437026673c0 100644
--- a/Build/source/utils/asymptote/Makefile.in
+++ b/Build/source/utils/asymptote/Makefile.in
@@ -21,6 +21,8 @@ PERL = perl
SHAREDLIBS = $(filter-out -lGL -lGLU -lglut -pthread $(GCLIBS), $(LIBS))
vpath %.cc prc
+vpath %.ui GUI/windows
+vpath %.py GUI/pyUIClass
CAMP = camperror path drawpath drawlabel picture psfile texfile util settings \
guide flatguide knot drawfill path3 drawpath3 drawsurface \
@@ -45,12 +47,13 @@ COREFILES = $(CAMP) $(SYMBOL_FILES) env genv stm dec errormsg \
FILES = $(COREFILES) main
-SYMBOLSH = opsymbols.h allsymbols.h
+SYMBOLSH = opsymbols.h allsymbols.h $(SYMBOL_FILES:=.symbols.h)
DIST = camp.tab.h camp.tab.cc lex.yy.cc runtime.cc keywords.cc \
asy-keywords.el $(RUNTIME_FILES:=.cc) $(RUNTIME_FILES:=.h) asy.list \
- $(SYMBOLSH) $(SYMBOL_FILES:=.symbols.h)
+ $(SYMBOLSH)
NAME = asy
XNAME = x$(NAME)
+UIFILES = $(wildcard GUI/windows/*.ui)
CLEAN = camp.output base/version.asy doc/version.texi \
GUI/xasyVersion.py $(XNAME) doc/asy-latex.pdf $(SYMBOLSH)
EXTRA = asy-mode.el asy-init.el asy.vim asy_filetype.vim asy-kate.sh \
@@ -58,7 +61,7 @@ EXTRA = asy-mode.el asy-init.el asy.vim asy_filetype.vim asy-kate.sh \
EXEXTRA = piicon.eps *.views *.dat *.bib
DOCEXTRA = *.asy *.csv *.dat latexusage.tex externalprc.tex pixel.pdf
KEYWORDS = base $(ASYMPTOTE_SITEDIR)
-LATEXFILES = asymptote.sty asycolors.sty ocg.sty latexmkrc
+LATEXFILES = asymptote.sty asycolors.sty ocg.sty latexmkrc
CONTEXTFILES = colo-asy.tex
ASY = ./asy -dir base -config "" -render=0
@@ -107,6 +110,7 @@ endif
export prefix docdir exampledir mandir infodir INSTALL MAKE DESTDIR TEXI2DVI
asy: version
+ -pyrcc5 GUI/res/icons.qrc -o GUI/icons_rc.py
if test -n "$(MSDOS)"; then \
$(CXX) $(OPTS) -o $(NAME) $(FILES:=.o) revision.o asy.o $(DOSLIBS); \
else \
@@ -114,7 +118,7 @@ asy: version
$(CXX) $(OPTS) -o $(NAME) $(FILES:=.o) revision.o $(LIBS); \
fi
-version: $(GCLIB) $(FILES:=.o)
+version: $(GCLIB) $(FILES:=.o) $(UIFILES:.ui=.py)
if test ! -s revision.cc -o "$(revision)" != "$(last)"; then \
echo $(REVISION)\"$(revision)\"\; > revision.cc; \
fi
@@ -124,7 +128,7 @@ version: $(GCLIB) $(FILES:=.o)
echo @set VERSION $(revision) > doc/version.texi
echo @set Datadir @datadir@ >> doc/version.texi
- echo "#!/usr/bin/env python" > GUI/xasyVersion.py
+ echo "#!/usr/bin/env python3" > GUI/xasyVersion.py
echo xasyVersion = \"$(revision)\" >> GUI/xasyVersion.py
if test -n "$(MSDOS)"; then \
@@ -221,7 +225,9 @@ asy-keywords.el: asy
grep -v three_\* | grep -v featpost3D | xargs $(ASY) -l >> asy.list
$(PERL) ./asy-list.pl asy.list $(revision)
-install: asy-keywords.el install-texhash install-man
+install-notexhash: asy-keywords.el install-asy install-man
+
+install: install-notexhash install-texhash
install-all: install install-html
@@ -231,14 +237,19 @@ install-texhash: install-asy
fi
install-asy: asy sty
- ${INSTALL} -d $(bindir) $(asydir) $(GUIdir) $(exampledir) \
- $(animationsdir)
+ ${INSTALL} -d $(bindir) $(asydir) $(exampledir) $(animationsdir)
+ ${INSTALL} -d $(GUIdir) $(GUIdir)/pyUIClass $(GUIdir)/configs \
+ $(GUIdir)/res $(GUIdir)/res/icons
-${INSTALL} -d $(latexdir)
-${INSTALL} -d $(contextdir)
${INSTALL} -p -m 755 $(NAME) $(bindir)
${INSTALL} -p -m 644 base/*.asy $(addprefix base/,$(EXTRA)) \
asy-keywords.el $(asydir)
${INSTALL} -p -m 755 GUI/*.py $(GUIdir)
+ ${INSTALL} -p -m 644 GUI/pyUIClass/*.py $(GUIdir)/pyUIClass
+ ${INSTALL} -p -m 644 GUI/configs/*.cson $(GUIdir)/configs
+ ${INSTALL} -p -m 644 GUI/res/icons.qrc $(GUIdir)/res
+ ${INSTALL} -p -m 644 GUI/res/icons/*.svg $(GUIdir)/res/icons
ln -sf @datadir@/asymptote/GUI/xasy.py $(bindir)/$(XNAME)
${INSTALL} -p -m 644 examples/*.asy $(addprefix examples/,$(EXEXTRA)) \
doc/extra/*.asy $(addprefix doc/,$(DOCEXTRA)) $(exampledir)
@@ -276,7 +287,7 @@ uninstall-asy:
-rmdir $(contextdir)
-cd $(bindir) && rm -f $(NAME) $(XNAME)
-uninstall-man:
+uninstall-man:
cd doc && $(MAKE) uninstall
uninstall-docdir:
@@ -316,22 +327,24 @@ check-all: asy FORCE
./wce
$(MAKE) -C tests all
-.SUFFIXES: .c .cc .o .d
-.cc.o:
+.SUFFIXES: .c .cc .o .d .ui .py
+%.o: %.cc
$(CXX) $(OPTS) $(INCL) -o $@ -c $<
-.cc.d:
+%.d: %.cc
@echo Creating $@; \
rm -f $@; \
${CXX} $(MAKEDEPEND) $(INCL) $(MDOPTS) $< > $@.$$$$ 2>/dev/null && \
sed 's,\($*\)\.o[ :]*,\1.o \1.pic.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
-.c.d:
+%.d: %.c
@echo Creating $@; \
rm -f $@; \
${CC} $(MAKEDEPEND) $(INCL) $(MDOPTS) $< > $@.$$$$ 2>/dev/null && \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
-
+%.py: %.ui
+ mkdir -p GUI/pyUIClass
+ -pyuic5 -o GUI/pyUIClass/$(notdir $@) $<
# Compile for the shared library. OpenGL must be disabled as it causes
# crashes inside a shared library.
%.pic.o: %.cc
@@ -351,4 +364,3 @@ Makefile: Makefile.in config.status
config.status: configure
./config.status --recheck
-