Check for necessary configure reruns for Makefile and Make.rules

generation.
oldstable
Marcus Meissner 1999-01-03 12:26:22 +00:00 committed by Alexandre Julliard
parent 5b729dd6a4
commit ca004e5037
2 changed files with 10 additions and 2 deletions

View File

@ -136,9 +136,13 @@ $(BUILD) checkbuild:
# Rule for main module
$(MODULE).o: $(OBJS)
$(MODULE).o: Makefile $(OBJS)
$(LDCOMBINE) $(OBJS) -o $(MODULE).o
Makefile: Makefile.in $(TOPSRCDIR)/configure
@echo Makefile is older than $?, please rerun $(TOPSRCDIR)/configure
@exit 1
# Rules for auto documentation
man: $(C_SRCS)

View File

@ -140,10 +140,14 @@ LIB_TARGET = @LIB_TARGET@
ALT_LINK = @ALT_LINK@
all: $(MAIN_TARGET)
all: Makefile Make.rules $(MAIN_TARGET)
@MAKE_RULES@
Make.rules: Make.rules.in configure
@echo $? is newer than 'Make.rules', please rerun ./configure!
@exit 1
install:: install_$(MAIN_TARGET)
uninstall:: uninstall_$(MAIN_TARGET)