aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorribet2007-05-03 07:53:39 +0000
committerribet2007-05-03 07:53:39 +0000
commitb95505d4faaa88c69c0bd75d7b9ae8e125aa0b42 (patch)
tree4dac7b0b93304e13b346bdaa1bc2c5750d320320 /Makefile
parent71d30241213ef44eafe93fba7134cd79a1851d50 (diff)
downloadmtc-b95505d4faaa88c69c0bd75d7b9ae8e125aa0b42.zip
mtc-b95505d4faaa88c69c0bd75d7b9ae8e125aa0b42.tar.gz
mtc-b95505d4faaa88c69c0bd75d7b9ae8e125aa0b42.tar.bz2
mtc-b95505d4faaa88c69c0bd75d7b9ae8e125aa0b42.tar.xz
SVG files are precompiled for examples.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 12 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index bd0392b..55f24e0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,13 @@
BASE_SUBDIR=Math Math/Bezier Tk/Zinc SVG SVG/SVG2zinc SVG/SVG2zinc/Backend MTools
MTOOLS_SUBDIR=Adapters Anim GUI Comp SVG Transform Widget
-
+SVG_LIST=$(shell svg_dep.sh)
all:
clean:
rm -f *~
+ rm -rf examples/AUTOGEN
+ rm -f Makefile.svg
distclean: clean
fakeroot make -f debian/rules clean
@@ -18,13 +20,17 @@ $(MTOOLS_SUBDIR:%=install_m_%):
install -d ${DESTDIR}${PREFIX}/share/perl5/MTools/$(@:install_m_%=%)
install src/MTools/$(@:install_m_%=%)/*.pm ${DESTDIR}${PREFIX}/share/perl5/MTools/$(@:install_m_%=%)
-install: all $(BASE_SUBDIR:%=install_%) $(MTOOLS_SUBDIR:%=install_m_%)
+build_svg: $(SVG_LIST:%=exemples/AUTOGEN/%)
+
+install: all $(BASE_SUBDIR:%=install_%) $(MTOOLS_SUBDIR:%=install_m_%) $(SVG_LIST:%=install_%)
install src/*.pm ${DESTDIR}${PREFIX}/share/perl5/
install src/SVG/SVG2zinc/Backend/*.pm.k ${DESTDIR}${PREFIX}/share/perl5/SVG/SVG2zinc/Backend
- install -d ${DESTDIR}${PREFIX}/share/doc/mtools/examples
- install exemples/*.pl exemples/*.pm ${DESTDIR}${PREFIX}/share/doc/mtools/examples
- install -d ${DESTDIR}${PREFIX}/share/doc/mtools/examples/data
- install exemples/data/*.svg exemples/data/*.png ${DESTDIR}${PREFIX}/share/doc/mtools/examples/data
+ install -d ${DESTDIR}${PREFIX}/share/doc/mtools-perl/examples
+ install exemples/*.pl exemples/*.pm ${DESTDIR}${PREFIX}/share/doc/mtools-perl/examples
+ install -d ${DESTDIR}${PREFIX}/share/doc/mtools-perl/examples/data
+ install exemples/data/*.svg exemples/data/*.png ${DESTDIR}${PREFIX}/share/doc/mtools-perl/examples/data
#emptycursor.mask
#emptycursor.xbm
+
+include Makefile.svg