[AD] sanity checks for cvs checkouts...

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


hi! i was wondering whether it would be worth it to add sanity checks in the
makefiles for missing allegro.def and makefile.dep... the following would do
it:

# -------- check that dependancy file exists --------
#
.PHONY: nodepwarn

nodepwarn:
ifeq ($(wildcard $(OBJ_DIR)/makefile.dep),)
 @echo WARNING!!! Found no dependancy file on your system.
 @echo You might want to run 'make depend'.
endif


# -------- check that export definitions file exists --------
#
.PHONY: nodefwarn

nodefwarn:
ifeq ($(wildcard $(LIB_DIR)/allegro.def),)
 @echo WARNING!!! Found no export definition file on your system.
 @echo You might want to run 'fixdll.bat'.
endif

and then slightly modify all makefiles to define the LIB_DIR... this works
nicely on normal 'make' but won't work if you specify a target so 'make
depend' and 'make lib' will omit the checks. this is the way the djgpp
sanity checks work for the moment but if anybody else has a better idea for
implementation i'd like to hear it.

-henrik




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/