X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/agedu/blobdiff_plain/5a830bf80878bd1521a71017ce19882caa755d80..50e82fdc62d1e7c0747bdc8c17d7ef7b863e1460:/GNUmakefile?ds=sidebyside diff --git a/GNUmakefile b/GNUmakefile index a5c01fb..cd7229e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -20,11 +20,23 @@ ALLMODULES := $(sort $(AGEDU_MODULES)) ALLOBJS := $(patsubst %,%.o,$(ALLMODULES)) ALLDEPS := $(patsubst %,%.d,$(ALLMODULES)) -binaries: agedu +BINARIES = agedu -agedu: $(AGEDU_OBJS) +binaries: $(BINARIES) + +agedu: config.h $(AGEDU_OBJS) gcc $(LFLAGS) -o agedu $(AGEDU_OBJS) +config.h: configure + ./configure + rm -f Makefile # we keep using _this_ Makefile + +configure: configure.ac + aclocal + autoconf + autoheader + automake -a --foreign + INTERNALFLAGS=# $(ALLOBJS): %.o: %.c @@ -38,6 +50,12 @@ $(MANPAGES): %.1: %.but halibut --man=$*.1 $*.but clean: - rm -f agedu $(ALLOBJS) $(ALLDEPS) + rm -f $(ALLOBJS) $(ALLDEPS) $(MANPAGES) $(BINARIES) + +spotless: clean + rm -f config.h config.h.in config.log config.status configure + rm -f depcomp install-sh missing stamp-h1 + rm -f Makefile.in aclocal.m4 + rm -rf autom4te.cache .deps -include $(ALLDEPS)