From d0e356d09e30a11c1e072415a5088f829d5c0a04 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 16 Jan 2022 21:32:01 -0500 Subject: Worked on features --- configure | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 179ee83..b6488b4 100755 --- a/configure +++ b/configure @@ -34,7 +34,7 @@ install: \$(EXECUTABLE) parsed # Below here shouldn't need editing -SOURCES=`ls $SOURCE_DIR/*.cc | tr '\n' ' '` +SOURCES=`find $SOURCE_DIR | grep .cc$ | tr '\n' ' '` PKG_CONFIG_CFLAGS= PKG_CONFIG_LIBS= @@ -63,7 +63,7 @@ if [ -n "$EXECUTABLE" ]; then ALL="$ALL \$(EXECUTABLE)" fi -ORULES=$(for cc in `ls $SOURCE_DIR/*.cc`; do g++ -MM -MT `cut -d'.' -f-1 <<< $cc`.o $cc; echo -e "\t"'$(CC) $(CFLAGS) $< -o $@ '"$PKG_CONFIG_CFLAGS\n"; done) +ORULES=$(for cc in `find $SOURCE_DIR | grep .cc$`; do g++ -MM -MT `cut -d'.' -f-1 <<< $cc`.o $cc; echo -e "\t"'$(CC) $(CFLAGS) $< -o $@ '"$PKG_CONFIG_CFLAGS\n"; done) cat << EOF > Makefile CC=g++ @@ -84,5 +84,6 @@ $EXTRAS$INSTALL$LIBRULE$EXERULE $ORULES clean: - rm -f $SOURCE_DIR/*.o \$(LIBRARY) \$(EXECUTABLE) + rm -f \$(LIBRARY) \$(EXECUTABLE) + find . | grep .o\$ | xargs rm -f EOF -- cgit v1.2.3