rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man2 / usr / include / make / commonrules.win32
1
2
3 .SUFFIXES: .l .y .o
4
5 #
6 # targets for lex and yacc
7 #
8 .l.c:
9 $(RM) $@
10 $(LEX) $(LFLAGS) $<
11 $(MV) lex.yy.c $@
12
13 .y.c:
14 $(RM) $@
15 $(YACC) $(YFLAGS) $<
16 $(MV) y.tab.c $@
17
18 .o.obj:
19 ;
20
21 #
22 # target to create preprocessor output file from .c file (for debugging)
23 #
24 .c.i:
25 $(RM) $@
26 $(CC) $(USER_C_FLAGS) -E $< > $*.i
27
28 #
29 # main target (first) resolves to makefile.def's main target
30 #
31 default: all
32
33 #
34 # This has to be here, for dependencies
35 #
36 INCLUDES = $(VCINCS); $(LCINCS); $(GCINCS)
37
38
39 #
40 # cleaning targets
41 #
42 $(COMMONPREF)clobber: $(COMMONPREF)clobber_subdirs
43 $(RM) $(DIRT) $(TARGETS) obj$(BUILD_ALT_DIR)
44
45 $(COMMONPREF)clean: $(COMMONPREF)clean_subdirs
46 $(RM) $(DIRT)
47
48 $(COMMONPREF)rmtargets: $(COMMONPREF)rmtargets_subdirs
49 $(RM) $(TARGETS)
50
51 #
52 # targets to build distributions
53 #
54 !IF EXIST($(DISTFILE))
55 !INCLUDE $(DISTFILE)
56 !ENDIF
57
58 $(COMMONPREF)distddk: $(COMMONPREF)distddk_subdirs
59 @$(INSTALL) $(INSTALLFLAGS) -F $(DIST)$(DISTDIR_DDK) $(DISTFILES_DDK)
60 @$(INSTALL) $(INSTALLFLAGS) -F $(DIST)$(DISTDIR_DDK) $(DISTFILES_DDK2)
61 @$(ECHO) ""
62
63 $(COMMONPREF)clobber_subdirs:
64
65 !IFDEF DIRS
66 #
67 # DIRS defined. We have to do subdirectories
68 #
69 CLOBBER_SUBDIRS=$(DIRS:.dir=.clobber)
70 CLEAN_SUBDIRS=$(DIRS:.dir=.clean)
71 RMTARGETS_SUBDIRS=$(DIRS:.dir=.rmtargets)
72 DISTDDK_SUBDIRS=$(DIRS:.dir=.distddk)
73
74 $(COMMONPREF)clobber_subdirs: $(CLOBBER_SUBDIRS)
75
76 $(COMMONPREF)clean_subdirs: $(CLEAN_SUBDIRS)
77
78 $(COMMONPREF)rmtargets_subdirs: $(RMTARGETS_SUBDIRS)
79
80 $(COMMONPREF)distddk_subdirs: $(DISTDDK_SUBDIRS)
81
82 $(CLOBBER_SUBDIRS):
83 @cd $*
84 @echo === clobbering $* ===
85 @$(MAKE) -nologo -f Makefile.win32 clobber
86 @cd ..
87
88 $(CLEAN_SUBDIRS):
89 @cd $*
90 @echo === cleaning $* ===
91 @$(MAKE) -nologo -f Makefile.win32 clean
92 @cd ..
93
94 $(RMTARGETS_SUBDIRS):
95 @cd $*
96 @echo === removing targets in $* ===
97 @$(MAKE) -nologo -f Makefile.win32 rmtargets
98 @cd ..
99
100 $(DISTDDK_SUBDIRS):
101 @cd $*
102 @echo === making DDK distribution in $* ===
103 @$(MAKE) -nologo -f Makefile.win32 distddk
104 @cd ..
105 !ELSE
106
107 $(COMMONPREF)clobber_subdirs $(COMMONPREF)clean_subdirs $(COMMONPREF)rmtargets_subdirs $(COMMONPREF)distddk_subdirs:
108
109 !ENDIF