mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Add make spotless target to get rid of config info, patch together various other spots missed by clean (#1515)
This commit is contained in:
parent
479171f569
commit
2e0e580c98
11
Makefile
11
Makefile
@ -370,10 +370,11 @@ clean_ICG :
|
||||
$(MAKE) -C ${TRICK_HOME}/trick_source/codegen/Interface_Code_Gen clean
|
||||
|
||||
clean_unit_test:
|
||||
@/bin/rm -rf ${TRICK_HOME}/trick_test/*.xml
|
||||
@/bin/rm -rf ${TRICK_HOME}/trick_test/
|
||||
@ for i in $(UNIT_TEST_DIRS) ; do \
|
||||
$(MAKE) -C $$i clean ; \
|
||||
done
|
||||
$(MAKE) -C $(DPX_UNIT_TEST_DIR) clean
|
||||
|
||||
clean_doxygen:
|
||||
@ $(MAKE) -C ${TRICK_HOME}/doxygen clean
|
||||
@ -394,9 +395,17 @@ clean_sim_serv_xml:
|
||||
clean_test: clean_unit_test
|
||||
-@ $(MAKE) -C trick_sims clean
|
||||
-@ $(MAKE) -C test clean
|
||||
@/bin/rm -rf ${TRICK_HOME}/trickops_logs
|
||||
|
||||
clean_gui: clean_java
|
||||
|
||||
spotless: clean clean_test
|
||||
rm -f config.log config.status share/trick/makefiles/config_user.mk
|
||||
|
||||
apocalypse: spotless
|
||||
@echo "[31mI love the smell of napalm in the morning[0m"
|
||||
|
||||
|
||||
################################################################################
|
||||
# INSTALL Targets
|
||||
################################################################################
|
||||
|
@ -59,7 +59,7 @@ sub gte (@) {
|
||||
# remove possible ccache from TRICK_CC
|
||||
my ($temp) = $ENV{TRICK_CC} ;
|
||||
$temp =~ s/.*?ccache\s+// ;
|
||||
$ret = `$temp --dumpfullversion dumpversion` ;
|
||||
$ret = `$temp -dumpfullversion dumpversion` ;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -81,8 +81,9 @@ TRICK_RANLIB =
|
||||
|
||||
|
||||
ifndef CONFIG_MK
|
||||
ifneq ($(MAKECMDGOALS), clean)
|
||||
$(error Please run $(TRICK_HOME)/configure before running make)
|
||||
# These are the targets that are allowed to run without configure
|
||||
ifeq ($(filter $(MAKECMDGOALS), clean real_clean spotless apocalypse),)
|
||||
$(error Please run $(TRICK_HOME)/configure before running make $(MAKECMDGOALS))
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -52,6 +52,7 @@ clean:
|
||||
$(MAKE) -C TESTING spotless
|
||||
$(MAKE) -C APPS spotless
|
||||
$(MAKE) -C XML clean
|
||||
$(MAKE) -C test clean
|
||||
${RM} *~
|
||||
${RM} *.o
|
||||
|
||||
|
@ -34,6 +34,7 @@ test: $(TESTS)
|
||||
|
||||
clean :
|
||||
rm -f $(TESTS) *.o *.gcno *.gcda
|
||||
rm -rf a pre_existing_output_dir/a ../a
|
||||
|
||||
create_path_test.o : create_path_test.cpp
|
||||
$(TRICK_CXX) $(TRICK_CXXFLAGS) -c $<
|
||||
|
Loading…
Reference in New Issue
Block a user