From af7b904d4ca4fc7858970176053507e9092a9ece Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 28 May 2001 04:05:03 +0000 Subject: [PATCH] Add targets for python wrapper (disabled by default) --- Makefile | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e07ed8d..1ba37e6 100644 --- 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 -- 2.26.2