mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Cleaned up 'make clean' output significantly.
This commit is contained in:
parent
6184aa6cd9
commit
1bb3ac2a06
40
Makefile
40
Makefile
@ -134,6 +134,14 @@ endif
|
|||||||
# libraries.
|
# libraries.
|
||||||
ICG_EXE := ${TRICK_HOME}/bin/trick-ICG
|
ICG_EXE := ${TRICK_HOME}/bin/trick-ICG
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# Formating Variables
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
# Appends a newline to the -w / --print-directories leaving message for make.
|
||||||
|
# This helps break up directory traversal into blocks.
|
||||||
|
MAKE_TRAVERSAL_NEWLINE := | sed '/^make.*: Leaving directory/a\ '
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# RULES
|
# RULES
|
||||||
################################################################################
|
################################################################################
|
||||||
@ -269,35 +277,46 @@ sim_test:
|
|||||||
# CLEAN Targets
|
# CLEAN Targets
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
|
||||||
clean: clean_sim_serv clean_utils clean_swig clean_dp clean_ICG clean_java
|
clean: clean_sim_serv clean_utils clean_swig clean_dp clean_ICG clean_java
|
||||||
@/bin/rm -rf $(TRICK_BIN_DIR)
|
@/bin/rm -rf $(TRICK_BIN_DIR)
|
||||||
@/bin/rm -rf $(TRICK_LIB_DIR)
|
@/bin/rm -rf $(TRICK_LIB_DIR)
|
||||||
|
|
||||||
|
@echo -e "\e[31m# #"
|
||||||
|
@echo -e "\e[33m## ##"
|
||||||
|
@echo -e "\e[32m### ###"
|
||||||
|
@echo -e "\e[34m#### ####"
|
||||||
|
@echo -e "\e[35m##### #####"
|
||||||
|
@echo -e "\e[39m-----Trick has been successfully cleaned.-----"
|
||||||
|
@echo -e "\e[35m##### #####"
|
||||||
|
@echo -e "\e[34m#### ####"
|
||||||
|
@echo -e "\e[32m### ###"
|
||||||
|
@echo -e "\e[33m## ##"
|
||||||
|
@echo -e "\e[31m# #\n"
|
||||||
|
|
||||||
ifeq ($(USE_ER7_UTILS), 1)
|
ifeq ($(USE_ER7_UTILS), 1)
|
||||||
clean: clean_er7_utils
|
clean: clean_er7_utils
|
||||||
endif
|
endif
|
||||||
|
|
||||||
clean_sim_serv:
|
clean_sim_serv:
|
||||||
@for i in $(SIM_SERV_DIRS) ; do \
|
@for i in $(SIM_SERV_DIRS) ; do \
|
||||||
$(MAKE) -C $$i real_clean ; \
|
$(MAKE) -C $$i real_clean $(MAKE_TRAVERSAL_NEWLINE); \
|
||||||
done
|
done
|
||||||
@ $(MAKE) -C ${TRICK_HOME}/trick_source/sim_services/mains real_clean
|
@ $(MAKE) -C ${TRICK_HOME}/trick_source/sim_services/mains real_clean $(MAKE_TRAVERSAL_NEWLINE)
|
||||||
|
|
||||||
clean_er7_utils: make_er7_makefiles
|
clean_er7_utils: make_er7_makefiles
|
||||||
@for i in $(ER7_UTILS_DIRS) ; do \
|
@for i in $(ER7_UTILS_DIRS) ; do \
|
||||||
$(MAKE) -C $$i real_clean ; \
|
$(MAKE) -C $$i real_clean $ $(MAKE_TRAVERSAL_NEWLINE); \
|
||||||
rm $$i/Makefile; \
|
rm $$i/Makefile; \
|
||||||
done
|
done
|
||||||
|
|
||||||
clean_utils:
|
clean_utils:
|
||||||
@for i in $(UTILS_DIRS) ; do \
|
@for i in $(UTILS_DIRS) ; do \
|
||||||
$(MAKE) -C $$i real_clean ; \
|
$(MAKE) -C $$i real_clean $(MAKE_TRAVERSAL_NEWLINE); \
|
||||||
done
|
done
|
||||||
|
|
||||||
clean_swig:
|
clean_swig:
|
||||||
@for i in $(SWIG_DIRS) ; do \
|
@for i in $(SWIG_DIRS) ; do \
|
||||||
$(MAKE) -C $$i real_clean ; \
|
$(MAKE) -C $$i real_clean $(MAKE_TRAVERSAL_NEWLINE); \
|
||||||
done
|
done
|
||||||
|
|
||||||
ifeq ($(USE_ER7_UTILS), 1)
|
ifeq ($(USE_ER7_UTILS), 1)
|
||||||
@ -305,7 +324,7 @@ clean_swig: make_er7_makefiles
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
clean_ICG :
|
clean_ICG :
|
||||||
$(MAKE) -C ${TRICK_HOME}/trick_source/codegen/Interface_Code_Gen clean
|
@ $(MAKE) -C ${TRICK_HOME}/trick_source/codegen/Interface_Code_Gen clean $(MAKE_TRAVERSAL_NEWLINE)
|
||||||
|
|
||||||
clean_unit_test:
|
clean_unit_test:
|
||||||
@/bin/rm -rf ${TRICK_HOME}/trick_test/*.xml
|
@/bin/rm -rf ${TRICK_HOME}/trick_test/*.xml
|
||||||
@ -314,14 +333,13 @@ clean_unit_test:
|
|||||||
done
|
done
|
||||||
|
|
||||||
clean_doxygen:
|
clean_doxygen:
|
||||||
@ $(MAKE) -C ${TRICK_HOME}/doxygen clean
|
@ $(MAKE) -C ${TRICK_HOME}/doxygen clean $(MAKE_TRAVERSAL_NEWLINE)
|
||||||
|
|
||||||
|
|
||||||
clean_dp:
|
clean_dp:
|
||||||
@ $(MAKE) clean -C ${TRICK_HOME}/trick_source/data_products
|
@ $(MAKE) clean -C ${TRICK_HOME}/trick_source/data_products $(MAKE_TRAVERSAL_NEWLINE)
|
||||||
|
|
||||||
clean_java:
|
clean_java:
|
||||||
@ $(MAKE) -C ${TRICK_HOME}/trick_source/java clean
|
@ $(MAKE) -C ${TRICK_HOME}/trick_source/java clean $(MAKE_TRAVERSAL_NEWLINE)
|
||||||
|
|
||||||
|
|
||||||
# FIXME: Seems to me that the for loop below should be removed and that the
|
# FIXME: Seems to me that the for loop below should be removed and that the
|
||||||
|
@ -161,6 +161,12 @@ $(Y_OBJS) : $(OBJ_DIR)/%.tab.o : $(SRC_DIR)%.tab.c | $(OBJ_DIR)
|
|||||||
$(CD_CMD) $(TRICK_CPPC) $(TRICK_CXXFLAGS) $(TRICK_SYSTEM_CXXFLAGS) -c ${<F} -o $(UP_DIR)$@
|
$(CD_CMD) $(TRICK_CPPC) $(TRICK_CXXFLAGS) $(TRICK_SYSTEM_CXXFLAGS) -c ${<F} -o $(UP_DIR)$@
|
||||||
|
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# FORMATTING VARIABLES
|
||||||
|
#############################################
|
||||||
|
REMOVAL_COLOR := @ echo -e "\e[31m\c"
|
||||||
|
DEFAULT_COLOR := @ echo -e "\e[0m\c"
|
||||||
|
|
||||||
#
|
#
|
||||||
# OTHER RULES
|
# OTHER RULES
|
||||||
#
|
#
|
||||||
@ -172,17 +178,23 @@ depend:
|
|||||||
@ echo "Created dependency file $(DEPFILE)"
|
@ echo "Created dependency file $(DEPFILE)"
|
||||||
|
|
||||||
io_clean:
|
io_clean:
|
||||||
|
$(REMOVAL_COLOR)
|
||||||
$(RM) -rf io_src
|
$(RM) -rf io_src
|
||||||
|
$(DEFAULT_COLOR)
|
||||||
real_clean: clean io_clean
|
|
||||||
$(RM) -rf xml *~ *.bak core
|
|
||||||
@ echo "Directory is really clean!"
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
$(REMOVAL_COLOR)
|
||||||
$(RM) -rf $(OBJ_DIR) $(L_C) $(Y_C) $(Y_H)
|
$(RM) -rf $(OBJ_DIR) $(L_C) $(Y_C) $(Y_H)
|
||||||
|
$(DEFAULT_COLOR)
|
||||||
|
|
||||||
|
real_clean: clean io_clean
|
||||||
|
$(REMOVAL_COLOR)
|
||||||
|
$(RM) -rf xml *~ *.bak core
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
help :
|
help :
|
||||||
@ echo -e "\n\
|
@ echo -e "\n\
|
||||||
|
|
||||||
Source Directory Make Options:\n\
|
Source Directory Make Options:\n\
|
||||||
make - Compiles are source files\n\
|
make - Compiles are source files\n\
|
||||||
\n\
|
\n\
|
||||||
|
@ -75,4 +75,6 @@ $(OBJ_DIR):
|
|||||||
mkdir -p $(OBJ_DIR)
|
mkdir -p $(OBJ_DIR)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ echo -e "\e[31m\c"
|
||||||
rm -rf $(OBJ_DIR) $(ICG)
|
rm -rf $(OBJ_DIR) $(ICG)
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
@ -129,6 +129,8 @@ real_clean:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ /bin/echo -e "\e[31m\c"
|
||||||
rm -rf object_${TRICK_HOST_CPU}
|
rm -rf object_${TRICK_HOST_CPU}
|
||||||
rm -rf ${TRICK_HOME}/lib_${TRICK_HOST_CPU}/*.so
|
rm -rf ${TRICK_HOME}/lib_${TRICK_HOST_CPU}/*.so
|
||||||
|
@ /bin/echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
|
@ -29,8 +29,10 @@ $(OBJDIR)/trk2ascii.o: trk2ascii.cpp | $(OBJDIR)
|
|||||||
$(CC) $(DP_CFLAGS) -c trk2ascii.cpp -o $(OBJDIR)/trk2ascii.o
|
$(CC) $(DP_CFLAGS) -c trk2ascii.cpp -o $(OBJDIR)/trk2ascii.o
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ echo -e "\e[31m\c"
|
||||||
rm -f trk2ascii
|
rm -f trk2ascii
|
||||||
rm -rf $(OBJDIR)
|
rm -rf $(OBJDIR)
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
real_clean: clean
|
real_clean: clean
|
||||||
|
|
||||||
|
@ -81,7 +81,9 @@ ${LIBDIR}/libDPC.a:
|
|||||||
$(MAKE) -C ${DPX_DIR}/DPC
|
$(MAKE) -C ${DPX_DIR}/DPC
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ echo -e "\e[31m\c"
|
||||||
${RM} $(OBJDIR)
|
${RM} $(OBJDIR)
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
|
|
||||||
|
@ -82,7 +82,9 @@ ${LIBDIR}/libDPV.a:
|
|||||||
$(MAKE) -C ${DPX_DIR}/DPV/UTILS
|
$(MAKE) -C ${DPX_DIR}/DPV/UTILS
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ echo -e "\e[31m\c"
|
||||||
${RM} $(OBJDIR)
|
${RM} $(OBJDIR)
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
|
|
||||||
|
@ -10,15 +10,15 @@ apps: fxplot
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
fxplot:
|
fxplot:
|
||||||
$(MAKE) -C FXPLOT
|
@$(MAKE) -C FXPLOT
|
||||||
|
|
||||||
gxflot:
|
gxflot:
|
||||||
$(MAKE) -C GXPLOT
|
@$(MAKE) -C GXPLOT
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -C FXPLOT clean
|
@$(MAKE) -C FXPLOT clean
|
||||||
$(MAKE) -C GXPLOT clean
|
@$(MAKE) -C GXPLOT clean
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
$(MAKE) -C FXPLOT spotless
|
@$(MAKE) -C FXPLOT spotless
|
||||||
$(MAKE) -C GXPLOT spotless
|
@$(MAKE) -C GXPLOT spotless
|
||||||
|
@ -33,6 +33,12 @@ endif
|
|||||||
ifeq ($(TRICK_HOST_TYPE), Darwin)
|
ifeq ($(TRICK_HOST_TYPE), Darwin)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# FORMATTING VARIABLES
|
||||||
|
#############################################
|
||||||
|
REMOVAL_COLOR := @ echo -e "\e[31m\c"
|
||||||
|
DEFAULT_COLOR := @ echo -e "\e[0m\c"
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
## MODEL TARGETS ##
|
## MODEL TARGETS ##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
@ -52,8 +58,10 @@ ${LIBDIR}:
|
|||||||
mkdir -p ${LIBDIR}
|
mkdir -p ${LIBDIR}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ echo -e "\e[31m\c"
|
||||||
${RM} *~
|
${RM} *~
|
||||||
${RM} ${OBJDIR}
|
${RM} ${OBJDIR}
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
${RM} ${LIBDIR}/${LIBNAME}
|
${RM} ${LIBDIR}/${LIBNAME}
|
||||||
|
@ -59,8 +59,10 @@ ${LIBDIR}:
|
|||||||
mkdir -p ${LIBDIR}
|
mkdir -p ${LIBDIR}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ echo -e "\e[31m\c"
|
||||||
${RM} *~
|
${RM} *~
|
||||||
${RM} ${OBJDIR}
|
${RM} ${OBJDIR}
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
${RM} ${LIBDIR}/${LIBNAME}
|
${RM} ${LIBDIR}/${LIBNAME}
|
||||||
|
@ -19,6 +19,12 @@ LIBOBJS = ${OBJDIR}/DPV_textbuffer.o
|
|||||||
#.cpp.o:
|
#.cpp.o:
|
||||||
# ${CPP} ${CFLAGS} ${INCDIRS} -c $<
|
# ${CPP} ${CFLAGS} ${INCDIRS} -c $<
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# FORMATTING VARIABLES
|
||||||
|
#############################################
|
||||||
|
REMOVAL_COLOR := @ echo -e "\e[31m\c"
|
||||||
|
DEFAULT_COLOR := @ echo -e "\e[0m\c"
|
||||||
|
|
||||||
all: ${LIBDIR}/${LIBNAME}
|
all: ${LIBDIR}/${LIBNAME}
|
||||||
|
|
||||||
$(LIBOBJS): $(OBJDIR)/%.o : %.cpp | ${OBJDIR}
|
$(LIBOBJS): $(OBJDIR)/%.o : %.cpp | ${OBJDIR}
|
||||||
@ -34,9 +40,12 @@ ${LIBDIR}:
|
|||||||
mkdir -p ${LIBDIR}
|
mkdir -p ${LIBDIR}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
$(REMOVAL_COLOR)
|
||||||
${RM} *~
|
${RM} *~
|
||||||
${RM} *.o
|
${RM} *.o
|
||||||
${RM} ${OBJDIR}
|
${RM} ${OBJDIR}
|
||||||
|
$(DEFAULT_COLOR)
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
${RM} ${LIBDIR}/${LIBNAME}
|
${RM} ${LIBDIR}/${LIBNAME}
|
||||||
|
@ -142,12 +142,13 @@ depend:
|
|||||||
@ echo "Appended dependencies to $(MAKEFILE)"
|
@ echo "Appended dependencies to $(MAKEFILE)"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "===== Cleaning DPC_TEST Directory ====="
|
@/bin/echo -e "\e[31m\c"
|
||||||
${RM} *~
|
${RM} *~
|
||||||
${RM} *.o
|
${RM} *.o
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
${RM} ctrl_test
|
${RM} ctrl_test
|
||||||
|
@/bin/echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
@ -112,11 +112,13 @@ depend:
|
|||||||
@ echo "Appended dependencies to $(MAKEFILE)"
|
@ echo "Appended dependencies to $(MAKEFILE)"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ /bin/echo -e "\e[31m\c"
|
||||||
${RM} *~
|
${RM} *~
|
||||||
${RM} *.o
|
${RM} *.o
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
${RM} model_test
|
${RM} model_test
|
||||||
|
@ /bin/echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
@ -122,11 +122,13 @@ depend:
|
|||||||
@ echo "Appended dependencies to $(MAKEFILE)"
|
@ echo "Appended dependencies to $(MAKEFILE)"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ /bin/echo -e "\e[31m\c"
|
||||||
${RM} *~
|
${RM} *~
|
||||||
${RM} *.o
|
${RM} *.o
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
${RM} dstest
|
${RM} dstest
|
||||||
|
@ /bin/echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
@ -100,8 +100,10 @@ depend:
|
|||||||
@ echo "Appended dependencies to $(MAKEFILE)"
|
@ echo "Appended dependencies to $(MAKEFILE)"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ /bin/echo -e "\e[31m\c"
|
||||||
${RM} *~
|
${RM} *~
|
||||||
${RM} *.o
|
${RM} *.o
|
||||||
|
@ /bin/echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
|
|
||||||
|
@ -125,12 +125,13 @@ depend:
|
|||||||
@ echo "Appended dependencies to $(MAKEFILE)"
|
@ echo "Appended dependencies to $(MAKEFILE)"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ /bin/echo -e "\e[31m\c"
|
||||||
${RM} *~
|
${RM} *~
|
||||||
${RM} *.o
|
${RM} *.o
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
${RM} tcdstest
|
${RM} tcdstest
|
||||||
|
@ /bin/echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
|
@ -125,12 +125,13 @@ depend:
|
|||||||
@ echo "Appended dependencies to $(MAKEFILE)"
|
@ echo "Appended dependencies to $(MAKEFILE)"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ /bin/echo -e "\e[31m\c"
|
||||||
${RM} *~
|
${RM} *~
|
||||||
${RM} *.o
|
${RM} *.o
|
||||||
|
|
||||||
spotless: clean
|
spotless: clean
|
||||||
${RM} udstest
|
${RM} udstest
|
||||||
|
@ /bin/echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|
||||||
|
@ -25,9 +25,9 @@ clean:
|
|||||||
$(MAKE) -C UDS clean
|
$(MAKE) -C UDS clean
|
||||||
|
|
||||||
spotless:
|
spotless:
|
||||||
$(MAKE) -C DPC_TEST spotless
|
@ $(MAKE) -C DPC_TEST spotless
|
||||||
$(MAKE) -C DPM_TEST spotless
|
@ $(MAKE) -C DPM_TEST spotless
|
||||||
$(MAKE) -C DS_exercisor spotless
|
@ $(MAKE) -C DS_exercisor spotless
|
||||||
$(MAKE) -C DS spotless
|
@ $(MAKE) -C DS spotless
|
||||||
$(MAKE) -C TCDS spotless
|
@ $(MAKE) -C TCDS spotless
|
||||||
$(MAKE) -C UDS spotless
|
@ $(MAKE) -C UDS spotless
|
||||||
|
@ -46,13 +46,16 @@ clean:
|
|||||||
@ for i in $(APPDIRS) ; do \
|
@ for i in $(APPDIRS) ; do \
|
||||||
$(MAKE) -C $$i clean ; \
|
$(MAKE) -C $$i clean ; \
|
||||||
done
|
done
|
||||||
${RM} -rf DOCS
|
|
||||||
|
@ $(MAKE) -C TESTING spotless
|
||||||
|
@ $(MAKE) -C APPS spotless
|
||||||
|
|
||||||
|
@ echo -e "\e[31m\c"
|
||||||
|
${RM} DOCS
|
||||||
${RM} ${LIBDIR}
|
${RM} ${LIBDIR}
|
||||||
$(MAKE) -C TESTING spotless
|
|
||||||
$(MAKE) -C APPS spotless
|
|
||||||
$(MAKE) -C XML clean
|
|
||||||
${RM} *~
|
${RM} *~
|
||||||
${RM} *.o
|
${RM} *.o
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
real_clean: clean
|
real_clean: clean
|
||||||
|
|
||||||
|
@ -63,6 +63,12 @@ IO_OBJS = $(IO_C_OBJS) $(IO_CPP_OBJS)
|
|||||||
|
|
||||||
OBJECT_FILES = $(IO_OBJS) $(C_OBJS) $(CPP_OBJS) $(F_OBJS)
|
OBJECT_FILES = $(IO_OBJS) $(C_OBJS) $(CPP_OBJS) $(F_OBJS)
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# FORMATTING VARIABLES
|
||||||
|
#############################################
|
||||||
|
REMOVAL_COLOR := @ echo -e "\e[31m\c"
|
||||||
|
DEFAULT_COLOR := @ echo -e "\e[0m\c"
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
## MODEL TARGETS ##
|
## MODEL TARGETS ##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
@ -93,8 +99,11 @@ depend:
|
|||||||
@ echo "Appended dependencies to $(MAKEFILE)"
|
@ echo "Appended dependencies to $(MAKEFILE)"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
$(REMOVAL_COLOR)
|
||||||
rm -rf $(OBJ_DIR)
|
rm -rf $(OBJ_DIR)
|
||||||
rm -f $(LIBDIR)/$(LIBNAME)
|
rm -f $(LIBDIR)/$(LIBNAME)
|
||||||
|
$(DEFAULT_COLOR)
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
real_clean: clean
|
real_clean: clean
|
||||||
|
|
||||||
|
@ -49,6 +49,12 @@ ifeq ($(TRICK_DP_FORCE_32BIT), 1)
|
|||||||
DP_CFLAGS += -m32
|
DP_CFLAGS += -m32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# FORMATTING VARIABLES
|
||||||
|
#############################################
|
||||||
|
REMOVAL_COLOR := @ echo -e "\e[31m\c"
|
||||||
|
DEFAULT_COLOR := @ echo -e "\e[0m\c"
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
## MODEL TARGETS ##
|
## MODEL TARGETS ##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
@ -65,8 +71,11 @@ $(LIBDIR)/$(LIBNAME): $(CPP_OBJECTS) | $(LIBDIR)
|
|||||||
ar crs $(LIBDIR)/$(LIBNAME) $?
|
ar crs $(LIBDIR)/$(LIBNAME) $?
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
$(REMOVAL_COLOR)
|
||||||
rm -rf $(OBJ_DIR)
|
rm -rf $(OBJ_DIR)
|
||||||
rm -f $(LIBDIR)/$(LIBNAME)
|
rm -f $(LIBDIR)/$(LIBNAME)
|
||||||
|
$(DEFAULT_COLOR)
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
real_clean: clean
|
real_clean: clean
|
||||||
|
|
||||||
|
@ -39,6 +39,12 @@ MAKEFILE = makefile
|
|||||||
AWKTEMPFILE = awk.temp
|
AWKTEMPFILE = awk.temp
|
||||||
MAKEDEPEND = makedepend
|
MAKEDEPEND = makedepend
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# FORMATTING VARIABLES
|
||||||
|
#############################################
|
||||||
|
REMOVAL_COLOR := @ echo -e "\e[31m\c"
|
||||||
|
DEFAULT_COLOR := @ echo -e "\e[0m\c"
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
## MODEL TARGETS ##
|
## MODEL TARGETS ##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
@ -61,8 +67,11 @@ depend:
|
|||||||
@ echo "Appended dependencies to $(MAKEFILE)"
|
@ echo "Appended dependencies to $(MAKEFILE)"
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
$(REMOVAL_COLOR)
|
||||||
rm -rf $(OBJ_DIR)
|
rm -rf $(OBJ_DIR)
|
||||||
rm -f $(LIBDIR)/$(LIBNAME)
|
rm -f $(LIBDIR)/$(LIBNAME)
|
||||||
|
$(DEFAULT_COLOR)
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
real_clean: clean
|
real_clean: clean
|
||||||
|
|
||||||
|
@ -40,8 +40,9 @@ clean:
|
|||||||
@ for i in $(LIBDIRS) ; do \
|
@ for i in $(LIBDIRS) ; do \
|
||||||
$(MAKE) -C $$i real_clean ; \
|
$(MAKE) -C $$i real_clean ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
@ for i in $(APPDIRS) ; do \
|
@ for i in $(APPDIRS) ; do \
|
||||||
$(MAKE) -C $$i real_clean ; \
|
$(MAKE) -C $$i real_clean ; \
|
||||||
done
|
done
|
||||||
@ rm -rf $(LIB_DIR)
|
|
||||||
|
|
||||||
|
@ rm -rf $(LIB_DIR)
|
||||||
|
@ -28,6 +28,12 @@ ifeq ($(TRICK_DP_FORCE_32BIT), 1)
|
|||||||
DP_CFLAGS += -m32
|
DP_CFLAGS += -m32
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# FORMATTING VARIABLES
|
||||||
|
#############################################
|
||||||
|
REMOVAL_COLOR := @ echo -e "\e[31m\c"
|
||||||
|
DEFAULT_COLOR := @ echo -e "\e[0m\c"
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
## MODEL TARGETS ##
|
## MODEL TARGETS ##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
@ -46,8 +52,11 @@ $(LIBDIR)/$(LIBNAME): $(CPP_OBJECTS) $(C_OBJECTS) $(LIBDIR)
|
|||||||
ar crs $(LIBDIR)/$(LIBNAME) $(CPP_OBJECTS) $(C_OBJECTS)
|
ar crs $(LIBDIR)/$(LIBNAME) $(CPP_OBJECTS) $(C_OBJECTS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
$(REMOVAL_COLOR)
|
||||||
rm -rf $(OBJ_DIR)
|
rm -rf $(OBJ_DIR)
|
||||||
rm -f $(LIBDIR)/$(LIBNAME)
|
rm -f $(LIBDIR)/$(LIBNAME)
|
||||||
|
$(DEFAULT_COLOR)
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
real_clean: clean
|
real_clean: clean
|
||||||
|
|
||||||
|
@ -55,10 +55,12 @@ javadoc: ${DOCS_API_DIR}
|
|||||||
javadoc -d ${DOCS_API_DIR} -classpath ${CLASS_PATH} -sourcepath ${SRC_DIR} -windowtitle "Trick GUI API" ${JAVA_DOC_LINKS} trick ${SRC_FILES}
|
javadoc -d ${DOCS_API_DIR} -classpath ${CLASS_PATH} -sourcepath ${SRC_DIR} -windowtitle "Trick GUI API" ${JAVA_DOC_LINKS} trick ${SRC_FILES}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ echo -e "\e[31m\c"
|
||||||
rm -rf ${BUILD_DIR}
|
rm -rf ${BUILD_DIR}
|
||||||
rm -rf ${DIST_DIR}
|
rm -rf ${DIST_DIR}
|
||||||
rm -rf ${RESOURCES_DIR}
|
rm -rf ${RESOURCES_DIR}
|
||||||
rm -rf ${TEST_REPORTS_DIR}
|
rm -rf ${TEST_REPORTS_DIR}
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
clean_obj:
|
clean_obj:
|
||||||
rm -rf ${BUILD_DIR}
|
rm -rf ${BUILD_DIR}
|
||||||
|
@ -81,16 +81,25 @@ $(SWIG_SRC_FILES): swig_${TRICK_HOST_CPU}/%_wrap.cpp : %.i
|
|||||||
$(TRICK_LIB) : $(SWIG_OBJECT_FILES) $(OBJECT_FILES)
|
$(TRICK_LIB) : $(SWIG_OBJECT_FILES) $(OBJECT_FILES)
|
||||||
ar crs $@ $?
|
ar crs $@ $?
|
||||||
|
|
||||||
|
#############################################
|
||||||
|
# FORMATTING VARIABLES
|
||||||
|
#############################################
|
||||||
|
REMOVAL_COLOR := @ echo -e "\e[31m\c"
|
||||||
|
DEFAULT_COLOR := @ echo -e "\e[0m\c"
|
||||||
|
MESSAGE_COLOR := @ echo -e "\e[32m\c"
|
||||||
|
|
||||||
real_clean: clean
|
real_clean: clean
|
||||||
|
|
||||||
clean: clean_python
|
clean: clean_python
|
||||||
|
$(REMOVAL_COLOR)
|
||||||
$(RM) -rf $(OBJ_DIR) $(TEST_DIR) $(PY_FILES)
|
$(RM) -rf $(OBJ_DIR) $(TEST_DIR) $(PY_FILES)
|
||||||
|
$(DEFAULT_COLOR)
|
||||||
|
@ echo -e "\e[32mDirectory cleaned.\e[0m"
|
||||||
|
|
||||||
clean_python:
|
clean_python:
|
||||||
|
$(REMOVAL_COLOR)
|
||||||
rm -rf swig_${TRICK_HOST_CPU} sim_services.py swig_double.py swig_int.py swig_ref.py
|
rm -rf swig_${TRICK_HOST_CPU} sim_services.py swig_double.py swig_int.py swig_ref.py
|
||||||
|
$(DEFAULT_COLOR)
|
||||||
real_clean: clean
|
|
||||||
|
|
||||||
# some depends
|
# some depends
|
||||||
swig_int_wrap.cpp: swig_int.cpp
|
swig_int_wrap.cpp: swig_int.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user