From 4b510ffd05e7b8bb65d60bebe6419266f63cc6e3 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Fri, 24 May 2013 12:41:23 +1000 Subject: [PATCH] replace the touch of site_ansto.c with the rm of site_ansto.o to force recompile (it's more git friendly) --- site_ansto/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site_ansto/Makefile b/site_ansto/Makefile index 23607837..d77b10e2 100644 --- a/site_ansto/Makefile +++ b/site_ansto/Makefile @@ -106,10 +106,14 @@ endif SICS_SITE = $(shell bash extract_version.sh SITE) SICS_VERSION = $(shell bash extract_version.sh VERSION) SICS_REVISION = $(shell bash extract_version.sh REVISION) -$(shell touch site_ansto.c) $(info Site text is "${SICS_SITE}") $(info Version text is "${SICS_VERSION}") $(info Revision text is "${SICS_REVISION}") + +ifneq (,$(wildcard site_ansto.o)) + $(info Removing site_ansto.o to force recompile) + $(shell rm -f site_ansto.o) +endif # DEBUGFLAGS = -Wall -Wextra -Wno-unused -Wno-comment -Wno-switch CFLAGS = -g -std=gnu99