summaryrefslogtreecommitdiff
path: root/rpc++/Proj.make
blob: af50f2f11bfae87d49b7502bc7a5adbbabd0641a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# These are included in every Makefile in the project

CWDPATH = .
CLEANWILDCARDS = core *~ *.o
VERYCLEANWILDCARDS = core *~ *.o
TEXCLEANWILDCARD = *~ *.aux *.log *.bbl *.blg *.toc *.idx *.ind
TEXVERYCLEANWILDCARD = $(TEXCLEANWILDCARD) *.dvi
ifndef SUBDIRS
SUBDIRS =
endif

# Doing all always means doing the subdirs.
# Make subdirs.all a target to allow forced processing
ifneq ("$(SUBDIRS)", "")
ifneq ("$(SUBDIRSALL)", "NO")
all:: subdirs.all
endif

subdirs.all::
	@for d in $(SUBDIRS); do \
	  (cd $$d; \
	   smflags=$(SUBMFLAGS); \
	   echo "Making all in $$d with flags: $$smflags ..." ; \
	   echo "cd `pwd`"; \
	   $(MAKE) $$smflags all); done; \
	echo "cd `pwd`"
else
all::;
endif

ifneq ("$(SUBDIRS)", "")
clean:: subdirs.clean

subdirs.clean::
	@for d in $(SUBDIRS); do \
	  echo "Cleaning all in $$d..." ; \
	  (cd $$d; $(MAKE) clean); done
else
clean::;
endif

ifneq ("$(SUBDIRS)", "")
veryclean:: subdirs.veryclean

subdirs.veryclean::
	@for d in $(SUBDIRS); do \
	  echo "Verycleaning all in $$d..." ; \
	  (cd $$d; $(MAKE) veryclean); done
else
veryclean::;
endif

# dist.list prints a list of files to be included in the distribution
distlist::
ifneq ("$(DISTLIST)", "")
	@for f in $(DISTLIST); do \
	  echo $(CWDPATH)/$$f; done
endif
ifneq ("$(SUBDIRS)", "")
ifneq ("$(SUBDIRSDIST)", "NO")
	@for d in $(SUBDIRS); do \
	  (cd $$d; $(MAKE) distlist CWDPATH=$(CWDPATH)/$$d); done
endif
endif
ifeq ("$(DISTLIST)$(SUBDIRS)","")
	
endif