Add targets for python wrapper (disabled by default)
authorDavid Schleef <ds@schleef.org>
Mon, 28 May 2001 04:05:03 +0000 (04:05 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 28 May 2001 04:05:03 +0000 (04:05 +0000)
Makefile

index e07ed8d80d457766153003c6b50160338124c996..1ba37e69e135208c97a139b53364af1612f966b9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
 
 # Makefile for comedi
 
+with_python = no
+with_perl = no
+
 .EXPORT_ALL_VARIABLES:
 
 include version
@@ -8,7 +11,15 @@ MAJOR=0
 
 CFLAGS = -Wall -O2
 
-all:   comedilib
+TARGETS = comedilib
+ifeq ($(with_python),yes)
+TARGETS += python
+endif
+ifeq ($(with_perl),yes)
+TARGETS += perl
+endif
+
+all:   $(TARGETS)
 
 SUBDIRS= lib demo comedi_calibrate testing comedi_config
 
@@ -56,9 +67,16 @@ subdirs:     dummy
 
 clean: dummy
        set -e;for i in $(SUBDIRS);do ${MAKE} clean -C $$i ; done
+ifeq ($(with_python),yes)
+       $(MAKE) -C python distclean
+endif
 
 distclean:     clean
 
+python: dummy
+       $(MAKE) -C python -f Makefile.pre.in boot
+       $(MAKE) -C python all
+       
 debian: dummy
        chmod 755 debian/rules
        dpkg-buildpackage -rfakeroot