Revision 0c8cc2c4

View differences:

subdir.mak
36 36
$(SUBDIR)%$(EXESUF): $(SUBDIR)%.o
37 37
	$$(LD) $(FFLDFLAGS) -o $$@ $$^ -l$(FULLNAME) $(FFEXTRALIBS) $$(ELIBS)
38 38

  
39
clean::
40
	$(RM) $(addprefix $(SUBDIR),*-example$(EXESUF) *-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
41
	    $(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) \
42
	    $(HOSTOBJS) $(HOSTPROGS)
43

  
44
distclean:: clean
45
	$(RM)  $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \
46
            $(addprefix $(SUBDIR), $(foreach suffix,$(DISTCLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))
47

  
48 39
$(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR)
49 40
	$(Q)cd ./$(SUBDIR) && $(LN_S) $(SLIBNAME_WITH_MAJOR) $(SLIBNAME)
50 41

  
......
57 48
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(DEP_LIBS)
58 49
endif
59 50

  
51
clean::
52
	$(RM) $(addprefix $(SUBDIR),*-example$(EXESUF) *-test$(EXESUF) $(CLEANFILES) $(CLEANSUFFIXES) $(LIBSUFFIXES)) \
53
	    $(addprefix $(SUBDIR), $(foreach suffix,$(CLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS)))) \
54
	    $(HOSTOBJS) $(HOSTPROGS)
55

  
56
distclean:: clean
57
	$(RM)  $(addprefix $(SUBDIR),$(DISTCLEANSUFFIXES)) \
58
            $(addprefix $(SUBDIR), $(foreach suffix,$(DISTCLEANSUFFIXES),$(addsuffix /$(suffix),$(DIRS))))
59

  
60 60
install-lib$(NAME)-shared: $(SUBDIR)$(SLIBNAME)
61 61
	$(Q)mkdir -p "$(SHLIBDIR)"
62 62
	$$(INSTALL) -m 755 $$< "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"

Also available in: Unified diff