]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Force make clean if settings.mk changes.
authorChris Porter <redacted>
Sun, 12 Oct 2008 21:01:09 +0000 (22:01 +0100)
committerChris Porter <redacted>
Sun, 12 Oct 2008 21:01:09 +0000 (22:01 +0100)
.hgignore
build.mk.in

index 8d385447b6821ffff2f5e4c086d6b2baaae32ebd..078326e7fde4d68abeed2db7a85398550b49fe64 100644 (file)
--- a/.hgignore
+++ b/.hgignore
@@ -12,7 +12,6 @@ data/
 newserv.conf
 chanservlog.*
 logs/*
-core/events.c
 *.pyc
 config.py
 ktrace.out
@@ -28,7 +27,7 @@ config.h
 settings.mk
 graphing/dump
 silly
-core/hooks.c
-lib/sstring.{c,h}
 y.tab.{c,h}
 lex.yy.c
+.settings.mk
+
index e6198152a03cbb2e52709d1b2d50627fcaf2d13d..9b4d6ae3ec0c010424b11500f7e2733651c7f107 100644 (file)
@@ -67,5 +67,19 @@ BUILDID @shell@ (hg id || echo "unknown") | sed -e "s/+ /-/;s/ /-/" @shellend@
 
 .l.c:  ;
 
+.PHONY: checksettings default
+
+default: checksettings all
+
+checksettings:
+       @test -f .settings.mk || cp settings.mk .settings.mk
+       @diff .settings.mk settings.mk >/dev/null || $(MAKE) -e FORCECHECK=1 realchecksettings
+
+realchecksettings:
+
+@ifdef@ FORCECHECK
+@error@ you must run make clean if you change settings.mk@errorend@
+@endif@
+
 CFLAGS+=-Wall -g -finline-functions -funroll-loops -std=c99 -I./ -DBUILDID=$(BUILDID)
 CFLAGS+=-fPIC -export-dynamic