Check for necessary configure reruns for Makefile and Make.rules
generation.
This commit is contained in:
parent
5b729dd6a4
commit
ca004e5037
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue