aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 0f53036beb954bcf0f417a7de9f20a08a0b726a5 (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
BASE_SUBDIR=Math Math/Bezier Tk/Zinc SVG SVG/SVG2zinc MTools
MTOOLS_SUBDIR=Adapters Anim GUI Comp SVG Transform Widget


all:

clean:
	rm -f *~

distclean: clean
	fakeroot make -f debian/rules clean

$(BASE_SUBDIR:%=install_%):
	install -d ${DESTDIR}${PREFIX}/share/perl5/mtools/$(@:install_%=%)
	install src/$(@:install_%=%)/*.pm ${DESTDIR}${PREFIX}/share/perl5/mtools/$(@:install_%=%)

$(MTOOLS_SUBDIR:%=install_m_%):
	install -d ${DESTDIR}${PREFIX}/share/perl5/mtools/MTools/$(@:install_m_%=%)
	install src/MTools/$(@:install_m_%=%)/*.pm ${DESTDIR}${PREFIX}/share/perl5/mtools/MTools/$(@:install_m_%=%)

install: all $(BASE_SUBDIR:%=install_%) $(MTOOLS_SUBDIR:%=install_m_%)
	install src/*.pm ${DESTDIR}${PREFIX}/share/perl5/mtools/
	install -d ${DESTDIR}${PREFIX}/share/perl5/mtools/SVG/SVG2zinc/Backend
	install src/SVG/SVG2zinc/Backend/*.pm.k ${DESTDIR}${PREFIX}/share/perl5/mtools/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

#emptycursor.mask
#emptycursor.xbm