Fixed obvious typos.
[reactos.git] / rosapps / Makefile
1 #
2 # Global makefile for the ROSAPPS package
3 #
4
5 #
6 # Select your host
7 #
8 #HOST = djgpp-msdos
9 HOST = mingw32-windows
10
11 include rules.mak
12
13 #
14 # Available applications
15 #
16 APPS = cmd cmdutils notevil sysutils dflat32 mc net\ping net\ncftp net\telnet
17
18 all: $(APPS)
19 .PHONY: all
20
21 clean: $(APPS:%=%_clean)
22 .PHONY: clean
23
24 floppy: make_floppy_dirs $(APPS:%=%_floppy)
25
26 dist: clean_dist_dir make_dist_dirs $(APPS:%=%_dist)
27 .PHONY: dist
28
29 #
30 # Applications
31 #
32 $(APPS): %:
33 make -C $*
34
35 $(APPS:%=%_clean): %_clean:
36 make -C $* clean
37
38 $(APPS:%=%_floppy): %_floppy:
39 make -C $* floppy
40
41 $(APPS:%=%_dist): %_dist:
42 make -C $* dist
43
44 .PHONY: $(APPS) $(APPS:%=%_clean) $(APPS:%=%_floppy) $(APPS:%=%_dist)
45
46
47 #
48 # Make an install floppy
49 #
50
51 install: all
52 ./install.sh /mnt/hda1
53
54 make_floppy_dirs:
55 ifeq ($(DOSCLI),yes)
56 mkdir $(FLOPPY_DIR)\apps
57 else
58 mkdir $(FLOPPY_DIR)/apps
59 endif
60
61 .PHONY: make_floppy_dirs
62
63 #
64 # Make a distribution saveset
65 #
66
67 clean_dist_dir:
68 ifeq ($(DOSCLI),yes)
69 # $(RM) $(DIST_DIR)\apps\*.*
70 # $(RMDIR) $(DIST_DIR)\apps
71 # $(RMDIR) $(DIST_DIR)
72 else
73 $(RM) -r $(DIST_DIR)
74 endif
75
76 make_dist_dirs:
77 ifeq ($(DOSCLI),yes)
78 mkdir $(DIST_DIR)
79 mkdir $(DIST_DIR)\apps
80 else
81 mkdir $(DIST_DIR)
82 mkdir $(DIST_DIR)/apps
83 endif
84
85 .PHONY: clean_dist_dir make_dist_dirs
86
87 # EOF