-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (41 loc) · 1.44 KB
/
Makefile
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
# +----------------------------------------------------------------------------+
# | ModShell 0.1 * Command-driven scriptable Modbus utility |
# | Copyright (C) 2023-2024 Pozsar Zsolt <pozsarzs@gmail.com> |
# | Makefile |
# | Makefile for Unix-like systems |
# +----------------------------------------------------------------------------+
include ./Makefile.global
dirs = desktop document/example document/picture document/syntax document manual message source
all:
@echo "Compiling source code..."
@for dir in $(dirs); do \
if [ -e Makefile ]; then $(make) -s -C $$dir all; fi; \
done
@echo "Done."
clean:
@echo "Cleaning source code..."
@for dir in $(dirs); do \
if [ -e Makefile ]; then $(make) -s -C $$dir clean; fi; \
done
@$(rm) config.log
@$(rm) config.status
@$(rm) Makefile.global
@echo "Done."
install:
@echo "Installing program to "$(prefix)":"
@for dir in $(dirs); do \
if [ -e Makefile ]; then $(make) -s -C $$dir install; fi; \
done
@echo "Done."
uninstall:
@echo "Removing program from "$(prefix)":"
@for dir in $(dirs); do \
if [ -e Makefile ]; then $(make) -s -C $$dir uninstall; fi; \
done
@echo "Done."
convert:
@echo "Convert files for DOS and Windows"
@for dir in $(dirs); do \
if [ -e Makefile ]; then $(make) -s -C $$dir convert; fi; \
done
@echo "Done."