X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=Makefile.in;h=e2121d50c2eb8b38bce3c8ca92e1422efb50adf1;hb=edebfc87c0b1a0d151994497f8169fcf7494f154;hp=ab4d6fb5e3b327851e83db660fd61671cb7b8c4f;hpb=3feb4a983be30be209105c7f2e18a65e48e2a7db;p=secnet.git diff --git a/Makefile.in b/Makefile.in index ab4d6fb..e2121d5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -68,6 +68,12 @@ OBJECTS:=version.o TEST_OBJECTS:= endif +STALE_PYTHON_FILES= $(foreach e, py pyc, \ + $(foreach p, /usr /usr/local, \ + $(foreach l, ipaddr, \ + $p/share/secnet/$l.$e \ + ))) + %.c: %.y %.yy.c: %.fl @@ -165,11 +171,23 @@ installdirs: $(INSTALL) -d $(mandir)/man8 install: installdirs + set -e; ok=true; for f in $(STALE_PYTHON_FILES); do \ + if test -e $$f; then \ + echo >&2 "ERROR: $$f still exists "\ + "- try \`make install-force'"; \ + ok=false; \ + fi; \ + done; \ + $$ok $(INSTALL_PROGRAM) secnet $(sbindir)/`echo secnet|sed '$(transform)'` $(INSTALL_PROGRAM) ${srcdir}/make-secnet-sites $(sbindir)/`echo make-secnet-sites|sed '$(transform)'` $(INSTALL) ${srcdir}/ipaddrset.py $(prefix)/share/secnet/ipaddrset.py $(INSTALL) secnet.8 $(mandir)/man8/secnet.8 +install-force: + rm -f $(STALE_PYTHON_FILES) + $(MAKE) install + clean: $(RM) -f *.o *.yy.c *.tab.[ch] $(TARGETS) core version.c $(RM) -f *.d *~ eax-*-test.confirm eax-*-test