557a71cccfe7f522d18b07df1ccf416a04d71851
[reactos.git] / rosapps / Makefile
1 #
2 # Global makefile for the ROSAPPS package
3 #
4
5 include rules.mak
6
7 #
8 # Available applications
9 #
10
11 APPS = cmdutils \
12 cmdutils$(SEP)mode \
13 cmdutils$(SEP)touch \
14 demos$(SEP)maze \
15 devutils$(SEP)genguid \
16 devutils$(SEP)zoomin \
17 dflat32 \
18 games$(SEP)winemine \
19 hcalc \
20 mc \
21 notevil \
22 sysutils \
23 sysutils$(SEP)ctm \
24 sysutils$(SEP)kill \
25 sysutils$(SEP)tcat \
26 sysutils$(SEP)tlist \
27 net$(SEP)niclist \
28 net$(SEP)ncftp \
29 sysutils$(SEP)regexpl \
30 tests \
31 welcome \
32 winfile
33
34 all: $(APPS)
35 .PHONY: all
36
37 implib:
38 .PHONY: implib
39
40 clean: $(APPS:%=%_clean)
41 .PHONY: clean
42
43 install: $(APPS:%=%_install)
44 .PHONY: install
45
46 floppy: make_floppy_dirs $(APPS:%=%_floppy)
47
48 dist: clean_dist_dir make_dist_dirs $(APPS:%=%_dist)
49 .PHONY: dist
50
51
52 #
53 # Applications
54 #
55 $(APPS): %:
56 $(MAKE) -C $*
57
58 $(APPS:%=%_clean): %_clean:
59 $(MAKE) -C $* clean
60
61 $(APPS:%=%_floppy): %_floppy:
62 $(MAKE) -C $* floppy
63
64 $(APPS:%=%_dist): %_dist:
65 $(MAKE) -C $* dist
66
67 $(APPS:%=%_install): %_install:
68 $(MAKE) -C $* install
69
70 .PHONY: $(APPS) $(APPS:%=%_clean) $(APPS:%=%_floppy) $(APPS:%=%_dist) $(APPS:%=%_install)
71
72
73 #
74 # Make an install floppy
75 #
76
77 #install: all
78 # ./install.sh /mnt/hda1
79
80 make_floppy_dirs:
81 ifeq ($(DOSCLI),yes)
82 mkdir $(FLOPPY_DIR)\apps
83 else
84 mkdir $(FLOPPY_DIR)/apps
85 endif
86
87 .PHONY: make_floppy_dirs
88
89 #
90 # Make a distribution saveset
91 #
92
93 clean_dist_dir:
94 ifeq ($(DOSCLI),yes)
95 # $(RM) $(DIST_DIR)\apps\*.*
96 # $(RMDIR) $(DIST_DIR)\apps
97 # $(RMDIR) $(DIST_DIR)
98 else
99 $(RM) -r $(DIST_DIR)
100 endif
101
102 make_dist_dirs:
103 ifeq ($(DOSCLI),yes)
104 mkdir $(DIST_DIR)
105 mkdir $(DIST_DIR)\apps
106 else
107 mkdir $(DIST_DIR)
108 mkdir $(DIST_DIR)/apps
109 endif
110
111 #dist: $(TOOLS_PATH)/rcopy$(EXE_POSTFIX) dist_clean dist_dirs \
112 # $(WINE_MODULES:%=%_dist)
113
114 .PHONY: clean_dist_dir make_dist_dirs
115
116 # EOF