remove empty dir
[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 games$(SEP)solitaire \
20 mc \
21 notevil \
22 packmgr$(SEP)lib \
23 packmgr$(SEP)cmd-line \
24 packmgr$(SEP)gui \
25 sysutils \
26 sysutils$(SEP)ctm \
27 sysutils$(SEP)kill \
28 sysutils$(SEP)tcat \
29 sysutils$(SEP)tlist \
30 net$(SEP)niclist \
31 net$(SEP)ncftp \
32 sysutils$(SEP)regexpl \
33 welcome \
34 winfile
35
36 all: $(APPS)
37 .PHONY: all
38
39 implib:
40 .PHONY: implib
41
42 clean: $(APPS:%=%_clean)
43 .PHONY: clean
44
45 install: $(APPS:%=%_install)
46 .PHONY: install
47
48 floppy: make_floppy_dirs $(APPS:%=%_floppy)
49
50 dist: clean_dist_dir make_dist_dirs $(APPS:%=%_dist)
51 .PHONY: dist
52
53
54 #
55 # Applications
56 #
57 $(APPS): %:
58 $(MAKE) -C $*
59
60 $(APPS:%=%_clean): %_clean:
61 $(MAKE) -C $* clean
62
63 $(APPS:%=%_floppy): %_floppy:
64 $(MAKE) -C $* floppy
65
66 $(APPS:%=%_dist): %_dist:
67 $(MAKE) -C $* dist
68
69 $(APPS:%=%_install): %_install:
70 $(MAKE) -C $* install
71
72 .PHONY: $(APPS) $(APPS:%=%_clean) $(APPS:%=%_floppy) $(APPS:%=%_dist) $(APPS:%=%_install)
73
74
75 #
76 # Make an install floppy
77 #
78
79 #install: all
80 # ./install.sh /mnt/hda1
81
82 make_floppy_dirs:
83 ifeq ($(DOSCLI),yes)
84 mkdir $(FLOPPY_DIR)\apps
85 else
86 mkdir $(FLOPPY_DIR)/apps
87 endif
88
89 .PHONY: make_floppy_dirs
90
91 #
92 # Make a distribution saveset
93 #
94
95 clean_dist_dir:
96 ifeq ($(DOSCLI),yes)
97 # $(RM) $(DIST_DIR)\apps\*.*
98 # $(RMDIR) $(DIST_DIR)\apps
99 # $(RMDIR) $(DIST_DIR)
100 else
101 $(RM) -r $(DIST_DIR)
102 endif
103
104 make_dist_dirs:
105 ifeq ($(DOSCLI),yes)
106 mkdir $(DIST_DIR)
107 mkdir $(DIST_DIR)\apps
108 else
109 mkdir $(DIST_DIR)
110 mkdir $(DIST_DIR)/apps
111 endif
112
113 #dist: $(TOOLS_PATH)/rcopy$(EXE_POSTFIX) dist_clean dist_dirs \
114 # $(WINE_MODULES:%=%_dist)
115
116 .PHONY: clean_dist_dir make_dist_dirs
117
118 # EOF