diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |