Improve structure of Makefiles

stopcriterion
Salvatore Filippone 5 years ago
parent e4e7d8970e
commit d2aeeb9dae

@ -13,9 +13,9 @@ libdir:
mlp: mlp:
cd mlprec && $(MAKE) all $(MAKE) -C mlprec all
cbnd: mlp cbnd: mlp
cd cbind && $(MAKE) all $(MAKE) -C cbind all
install: all install: all
mkdir -p $(INSTALL_LIBDIR) &&\ mkdir -p $(INSTALL_LIBDIR) &&\
$(INSTALL_DATA) lib/*.a $(INSTALL_LIBDIR) $(INSTALL_DATA) lib/*.a $(INSTALL_LIBDIR)

@ -15,11 +15,11 @@ lib: mlprecd
mlprecd: mlprecd:
cd mlprec && $(MAKE) lib LIBNAME=$(LIBNAME) $(MAKE) -C mlprec lib LIBNAME=$(LIBNAME)
clean: clean:
cd mlprec && $(MAKE) clean $(MAKE) -C mlprec clean
veryclean: clean veryclean: clean

@ -55,7 +55,7 @@ LIBNAME=libmld_prec.a
all: lib impld all: lib impld
impld: $(OBJS) impld: $(OBJS)
cd impl && $(MAKE) $(MAKE) -C impl
lib: $(OBJS) impld lib: $(OBJS) impld
$(AR) $(HERE)/$(LIBNAME) $(OBJS) $(AR) $(HERE)/$(LIBNAME) $(OBJS)
@ -172,4 +172,4 @@ clean: implclean
/bin/rm -f $(OBJS) $(LOCAL_MODS) *$(.mod) /bin/rm -f $(OBJS) $(LOCAL_MODS) *$(.mod)
implclean: implclean:
cd impl && $(MAKE) clean $(MAKE) -C impl clean

@ -72,13 +72,13 @@ lib: $(OBJS) aggrd levd smoothd solvd
$(RANLIB) $(HERE)/$(LIBNAME) $(RANLIB) $(HERE)/$(LIBNAME)
aggrd: aggrd:
cd aggregator && $(MAKE) $(MAKE) -C aggregator
levd: levd:
cd level && $(MAKE) $(MAKE) -C level
smoothd: smoothd:
cd smoother && $(MAKE) $(MAKE) -C smoother
solvd: solvd:
cd solver && $(MAKE) $(MAKE) -C solver
mpobjs: mpobjs:
(make $(MPFOBJS) FC="$(MPFC)" FCOPT="$(FCOPT)") (make $(MPFOBJS) FC="$(MPFC)" FCOPT="$(FCOPT)")
@ -91,10 +91,10 @@ clean: solvclean smoothclean levclean aggrclean
/bin/rm -f $(OBJS) $(LOCAL_MODS) /bin/rm -f $(OBJS) $(LOCAL_MODS)
aggrclean: aggrclean:
cd aggregator && $(MAKE) clean $(MAKE) -C aggregator clean
levclean: levclean:
cd level && $(MAKE) clean $(MAKE) -C level clean
smoothclean: smoothclean:
cd smoother && $(MAKE) clean $(MAKE) -C smoother clean
solvclean: solvclean:
cd solver && $(MAKE) clean $(MAKE) -C solver clean

Loading…
Cancel
Save