summaryrefslogtreecommitdiff
path: root/GNUmakefile.in
diff options
context:
space:
mode:
authorpavet2004-09-21 13:02:38 +0000
committerpavet2004-09-21 13:02:38 +0000
commit04948d0e6b895066400d8a8b1f030a7aa1d44fec (patch)
treeb7e2b0f3d6c3ed727259dc0410b6470c71b6dbf2 /GNUmakefile.in
parent51c0a126190162c1ec965b8720ed5b1b3f507474 (diff)
downloadivycpy-vinit-04948d0e6b895066400d8a8b1f030a7aa1d44fec.zip
ivycpy-vinit-04948d0e6b895066400d8a8b1f030a7aa1d44fec.tar.gz
ivycpy-vinit-04948d0e6b895066400d8a8b1f030a7aa1d44fec.tar.bz2
ivycpy-vinit-04948d0e6b895066400d8a8b1f030a7aa1d44fec.tar.xz
adaptations pour delivrer un paquet debian woody 3.0
propre dependant python2.1-tk-o et ivyc (>=3.3)
Diffstat (limited to 'GNUmakefile.in')
-rw-r--r--GNUmakefile.in24
1 files changed, 20 insertions, 4 deletions
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 51e5d60..49bc898 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -12,6 +12,7 @@ VERSION := @VERSION@
STATIC_EXAMPLES := pyhello.py testtk.py
EXAMPLES := $(addprefix docs/examples/, env.sh)
DOCS := $(addprefix docs/html/, index.html ivycpy_wrap.html)
+DEBIANSTUFF := debian/copyright
DEFINES := @DEFINES@
INCLUDES := @INCLUDES@
@@ -27,9 +28,15 @@ mandir := @mandir@
infodir := @infodir@
pyexecdir := @pyexecdir@
pythondir := @pythondir@
+pmode := @pmode@ # package mode debian or default
-PKGEXAMPLESDIR := $(datadir)/$(PACKAGE)-$(VERSION)/examples
+# PKGEXAMPLESDIR := $(datadir)/$(PACKAGE)-$(VERSION)/examples
+
+ifeq "$(pmode)" "debian"
+PKGDOCDIR := $(datadir)/doc/$(PACKAGE)-$(VERSION)
+else
PKGDOCDIR := $(datadir)/$(PACKAGE)-$(VERSION)/docs
+endif
MKDIR := mkdir -p
RMDIR := rmdir -p
@@ -74,7 +81,7 @@ CFLAGS = @CFLAGS@ $(CC_OPTIONS)
LDFLAGS = @LDFLAGS@ $(LD_OPTIONS)
LDLIBS = $(LIBRARIES) @LIBS@
-default: ivycpy.so $(DOCS) $(EXAMPLES)
+default: ivycpy.so $(DOCS) $(EXAMPLES) $(DEBIANSTUFF)
ivycpy.so: ivycpy_wrap_neat.o @PYTHON_LIBDIR@/python@PYTHON_VERSION@/lib-dynload/_tkinter.so
$(LINK.o) $(CC_SHARED_OPTIONS) $^ -o $@ -livy $(LDLIBS) -lc
@@ -111,13 +118,22 @@ VERSION:
docs/examples/env.sh: env_tpl.sh
>|$@ sed -e "s|_IVYCPYPATH_|$(pythondir)|g" $<
+# debian
+
+debian/copyright: docs/copyright
+ $(INSTALL_DATA) $< debian
+
install:: ivycpy.so
$(INSTALL_DIR) $(pythondir)
$(INSTALL_DATA) $< $(pythondir)
-install:: $(DOCS)
+# install of docs requires o exclude service file : CVS, .cvsignore
+install:: $(DOCS) $(EXAMPLES)
$(INSTALL_DIR) $(PKGDOCDIR)
- cp -rp docs/* $(PKGDOCDIR)
+ # cp -rp docs/* $(PKGDOCDIR)
+ cd docs && \
+ find . -type d ! \( -name 'CVS*' -o -name '.' \) -exec install -d $(PKGDOCDIR)/{} ";" && \
+ find . -type f ! -name '.cvsignore' -exec cp -p {} $(PKGDOCDIR)/{} ";"
.PHONY: default install VERSION