<commit_before>
# Makefile for comedi

.EXPORT_ALL_VARIABLES:

include version
MAJOR=0

CFLAGS = -Wall -O2

all:	comedilib

SUBDIRS= lib demo comedi_calibrate testing comedi_config

DOCFILES= README INSTALL `find doc -type f`

INSTALLDIR=$(DESTDIR)/usr
INSTALLDIR_LIB=$(DESTDIR)/usr/lib
INSTALLDIR_DOC=$(DESTDIR)/usr/share/doc/libcomedi
INSTALLDIR_MAN=$(DESTDIR)/usr/share/man
INSTALLDIR_BIN=$(DESTDIR)/usr/bin
INSTALLDIR_SBIN=$(DESTDIR)/usr/sbin

comedilib:	subdirs

config:	dummy

install:	dummy
	install -d ${INSTALLDIR}/include
	(cd include;install -m 644 comedilib.h ${INSTALLDIR}/include)
	(cd include;install -m 644 comedi.h ${INSTALLDIR}/include)
	install lib/libcomedi.so.${version} ${INSTALLDIR_LIB}
	(cd $(INSTALLDIR_LIB);ln -sf libcomedi.so.${version} libcomedi.so.${MAJOR})
	(cd $(INSTALLDIR_LIB);ln -sf libcomedi.so.${version} libcomedi.so)
	install -m 644 lib/libcomedi.a ${INSTALLDIR_LIB}
	#/sbin/ldconfig -n ${INSTALLDIR}/lib
	install -d ${INSTALLDIR_DOC}
	install ${DOCFILES} ${INSTALLDIR_DOC}
	install man/*.7 ${INSTALLDIR_MAN}/man7
	install man/*.8 ${INSTALLDIR_MAN}/man8
	install -s -m 755 comedi_config/comedi_config ${INSTALLDIR_SBIN}
	install -s -m 755 comedi_calibrate/comedi_calibrate ${INSTALLDIR_BIN}

lpr:	dummy
	find . -name '*.[chs]'|xargs enscript -2r -pit.ps

subdirs:	dummy
	set -e;for i in ${SUBDIRS};do ${MAKE} -C $$i ; done

clean:	dummy
	set -e;for i in $(SUBDIRS);do ${MAKE} clean -C $$i ; done

distclean:	clean

debian: dummy
	chmod 755 debian/rules
	dpkg-buildpackage -rfakeroot

dev:	dummy
	-rm /dev/comedi*
	/bin/mknod /dev/comedi0 c 98 0
	/bin/mknod /dev/comedi1 c 98 1
	/bin/mknod /dev/comedi2 c 98 2
	/bin/mknod /dev/comedi3 c 98 3<commit_msg>make install now installs man pages to the wrong place, as per user request<commit_after>
# Makefile for comedi

.EXPORT_ALL_VARIABLES:

include version
MAJOR=0

CFLAGS = -Wall -O2

all:	comedilib

SUBDIRS= lib demo comedi_calibrate testing comedi_config

DOCFILES= README INSTALL `find doc -type f`

INSTALLDIR=$(DESTDIR)/usr
INSTALLDIR_LIB=$(DESTDIR)/usr/lib
ifeq ($(DEBIAN),)
INSTALLDIR_DOC=$(DESTDIR)/usr/share/doc/libcomedi
INSTALLDIR_MAN=$(DESTDIR)/usr/share/man
else
INSTALLDIR_DOC=$(DESTDIR)/usr/doc/libcomedi
INSTALLDIR_MAN=$(DESTDIR)/usr/man
endif
INSTALLDIR_BIN=$(DESTDIR)/usr/bin
INSTALLDIR_SBIN=$(DESTDIR)/usr/sbin

comedilib:	subdirs

config:	dummy

install:	dummy
	install -d ${INSTALLDIR}/include
	(cd include;install -m 644 comedilib.h ${INSTALLDIR}/include)
	(cd include;install -m 644 comedi.h ${INSTALLDIR}/include)
	install lib/libcomedi.so.${version} ${INSTALLDIR_LIB}
	(cd $(INSTALLDIR_LIB);ln -sf libcomedi.so.${version} libcomedi.so.${MAJOR})
	(cd $(INSTALLDIR_LIB);ln -sf libcomedi.so.${version} libcomedi.so)
	install -m 644 lib/libcomedi.a ${INSTALLDIR_LIB}
	#/sbin/ldconfig -n ${INSTALLDIR}/lib
ifneq ($(INSTALLDIR),)
	install -d ${INSTALLDIR_DOC}
	install ${DOCFILES} ${INSTALLDIR_DOC}
endif
	install man/*.7 ${INSTALLDIR_MAN}/man7
	install man/*.8 ${INSTALLDIR_MAN}/man8
	install -s -m 755 comedi_config/comedi_config ${INSTALLDIR_SBIN}
	install -s -m 755 comedi_calibrate/comedi_calibrate ${INSTALLDIR_BIN}

lpr:	dummy
	find . -name '*.[chs]'|xargs enscript -2r -pit.ps

subdirs:	dummy
	set -e;for i in ${SUBDIRS};do ${MAKE} -C $$i ; done

clean:	dummy
	set -e;for i in $(SUBDIRS);do ${MAKE} clean -C $$i ; done

distclean:	clean

debian: dummy
	chmod 755 debian/rules
	dpkg-buildpackage -rfakeroot

dev:	dummy
	-rm /dev/comedi*
	/bin/mknod /dev/comedi0 c 98 0
	/bin/mknod /dev/comedi1 c 98 1
	/bin/mknod /dev/comedi2 c 98 2
	/bin/mknod /dev/comedi3 c 98 3
{'fraction_non_alphanumeric': 0.13918390162101732, 'fraction_numerical': 0.022917831190609278, 'mean_word_length': 4.77258064516129, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5224631', 'n_tokens_mistral': 1551, 'n_tokens_neox': 1430, 'n_words': 345}