blob: 05c0c4838f38bfd6814b582b1c93cf75ff5fd144 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
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 exemples/AUTOGEN
rm -f Makefile.svg
distclean: clean
fakeroot make -f debian/rules clean
$(BASE_SUBDIR:%=install_%):
install -d ${DESTDIR}${PREFIX}/share/perl5/$(@:install_%=%)
install src/$(@:install_%=%)/*.pm ${DESTDIR}${PREFIX}/share/perl5/$(@:install_%=%)
$(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_%=%)
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-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
|