summaryrefslogtreecommitdiff
path: root/dviware/mdvi/config/depend.mk
blob: 6560f74d8e4ff8a28b5b158cc3b4f5c6cc6c6a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

DISTCLEANABLE += $(DEPSOURCES:.c=.d)

.SUFFIXES: .d

.c.d:
	@echo "Updating dependencies for $<"
	@set -e; $(MAKEDEP) $(DEPCFLAGS) $< | \
	sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@;

ifeq ($(subst clean,,$(MAKECMDGOALS)),$(MAKECMDGOALS)) 
-include $(DEPSOURCES:.c=.d)
endif