added rebuild target at lower levels

This commit is contained in:
Jeff Hill
1996-09-16 19:35:59 +00:00
parent 6a9030e5e6
commit 8feefadabf
4 changed files with 13 additions and 8 deletions
+3 -1
View File
@@ -23,6 +23,8 @@ all:: install
pre_build::
rebuild:: clean install
build:: pre_build $(LIBNAME) $(TARGETS) $(PROD)
inc:: $(INSTALL_INC)
@@ -252,7 +254,7 @@ $(INSTALL_TEMPLATES)/$(TEMPLATES_DIR)/%: %
.PRECIOUS: %.o %.c
.PHONY: all inc depends build install pre-build clean
.PHONY: all inc depends build install pre-build clean rebuild
-include .DEPENDS
+8 -6
View File
@@ -27,6 +27,8 @@ INSTALL_DBDNAME=$(DBDNAME:%=$(INSTALL_DBD)/%)
all:: install
rebuild:: clean install
pre_build::
build:: pre_build $(MENUS) $(RECTYPES) $(BPTS)\
@@ -90,20 +92,20 @@ clean::
$(YACC) $(YACCOPT) $<
@if [ -f y.tab.c ]; \
then \
echo "/bin/mv y.tab.c $*.c"; \
/bin/mv y.tab.c $*.c; \
echo "$(MV) y.tab.c $*.c"; \
$(MV) y.tab.c $*.c; \
fi
@if [ -f y.tab.h ]; \
then \
echo "/bin/mv y.tab.h $*.h"; \
/bin/mv y.tab.h $*.h; \
echo "$(MV) y.tab.h $*.h"; \
$(MV) y.tab.h $*.h; \
fi
%.c: ../%.l
$(RM) lex.yy.c
$(LEX) $(LEXOPT) $<
$(RM) $@
/bin/mv lex.yy.c $@
$(MV) lex.yy.c $@
#state notation language rules
%.c: ../%.st
@@ -254,7 +256,7 @@ $(INSTALL_DOC)/%: ../%
.PRECIOUS: %.o %.c
.PHONY: all inc depends build install pre-build clean
.PHONY: all inc depends build install pre-build clean rebuild
-include .DEPENDS
+1
View File
@@ -11,6 +11,7 @@ ACTIONS += inc
ACTIONS += build
ACTIONS += install
ACTIONS += depends
ACTIONS += rebuild
actionPart = $(word 1, $(subst $(DIVIDER), ,$@))
archPart = $(word 2, $(subst $(DIVIDER), ,$@))
+1 -1
View File
@@ -26,7 +26,7 @@ actionArchTargets = $(foreach action, $(ACTIONS),\
all:: inc install
rebuild:: clean uninstall all
rebuild:: clean all
$(DIRS) $(dirActionTargets) $(dirArchTargets)$(dirActionArchTargets) ::
$(MAKE) -C $(dirPart) $(actionArchPart)