9 srcdir = $(basedir
)/src
11 package
= @PACKAGE_NAME@
12 version
= @PACKAGE_VERSION@
14 distdir
= $(tarname
)-$(version
)
15 LOCAL_PYTHON_VERSION
= @LOCAL_PYTHON_VERSION@
17 #DO NOT add "$(MAKE) -C src $@" to this target!
18 $(package
): build link copy
21 cd python
&& python setup.py
install
23 clean: cleanup
$(package
)
29 @if
test -f python
/$(package
)/_
$(package
)py
*; \
30 then echo
rm python
/$(package
)/_
$(package
)py
*; \
31 rm python
/$(package
)/_
$(package
)py
*; \
40 copy
: build link clean_lib
41 mv
$(srcdir)/_
$(package
)py
* python
/$(package
)/
42 -mkdir
-p python
/build
/lib
43 cp python
/$(package
)/$(package
).py python
/build
/lib
44 cp python
/$(package
)/_
$(package
)* python
/build
/lib
46 @echo
"********************************************************************************"
47 @echo xaut is ready for use. Copy .
/python
/xaut
/xaut.py and .
/python
/xaut
/_xautpy.so
48 @echo to the same directory
as your script.
49 @echo
"********************************************************************************"
52 dist: $(distdir
).
tar.gz
56 mv
$(srcdir)/$(package
)_test
test
59 @echo
"********************************************************************************"
60 @echo
" Note that this only builds the test program - it does not run it."
61 @echo
" Go into the test directory and execute $(package)_test to run the tests."
62 @echo
"********************************************************************************"
68 $(distdir
).
tar.gz
: FORCE
$(distdir
)
69 tar chof
- $(distdir
) | gzip
-9 -c
>$(distdir
).
tar.gz
73 mkdir
-p
$(distdir
)/src
74 cp configure
$(distdir
)
75 cp COPYRIGHT
$(distdir
)
76 cp Makefile.in
$(distdir
)
78 cp config.h.in
$(distdir
)
79 cp
install.sh
$(distdir
)
80 cp
$(srcdir)/config.h
$(distdir
)/src
81 cp
$(srcdir)/main.c
$(distdir
)/src
82 cp
$(srcdir)/Makefile.in
$(distdir
)/src
83 cp
$(srcdir)/xaut.c
$(distdir
)/src
84 cp
$(srcdir)/xaut_display.c
$(distdir
)/src
85 cp
$(srcdir)/xaut_display.h
$(distdir
)/src
86 cp
$(srcdir)/xaut.h
$(distdir
)/src
87 cp
$(srcdir)/xaut_keyboard.c
$(distdir
)/src
88 cp
$(srcdir)/xaut_keyboard.h
$(distdir
)/src
89 cp
$(srcdir)/xaut_mouse.c
$(distdir
)/src
90 cp
$(srcdir)/xaut_mouse.h
$(distdir
)/src
91 cp
$(srcdir)/xautpy.i
$(distdir
)/src
92 cp
$(srcdir)/xaut_types.h
$(distdir
)/src
93 cp
$(srcdir)/xaut_window.c
$(distdir
)/src
94 cp
$(srcdir)/xaut_window.h
$(distdir
)/src
95 mkdir
-p
$(distdir
)/python
/$(package
)
96 cp
$(basedir
)/python
/egg-info
$(distdir
)/python
/$(package
)-$(version
).egg-info
97 cp
$(basedir
)/python
/setup.py
$(distdir
)/python
/
98 cp
$(basedir
)/python
/xaut
/xaut.py
$(distdir
)/python
/$(package
)
99 mkdir
-p
$(distdir
)/docs
/html
100 cp
$(basedir
)/docs
/html
/display.html
$(distdir
)/docs
/html
101 cp
$(basedir
)/docs
/html
/index.html
$(distdir
)/docs
/html
102 cp
$(basedir
)/docs
/html
/keyboard.html
$(distdir
)/docs
/html
103 cp
$(basedir
)/docs
/html
/mouse.html
$(distdir
)/docs
/html
104 cp
$(basedir
)/docs
/html
/other.html
$(distdir
)/docs
/html
105 cp
$(basedir
)/docs
/html
/window.html
$(distdir
)/docs
/html
106 cp
$(basedir
)/docs
/html
/xaut.css
$(distdir
)/docs
/html
109 -rm $(distdir
).
tar.gz
112 .PHONY
: $(package
) dist FORCE
clean