-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
65 lines (49 loc) · 1.21 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# moauth top-level makefile
#
# Copyright © 2017-2022 by Michael R Sweet
#
# Licensed under Apache License v2.0. See the file "LICENSE" for more
# information.
#
# Include common stuff...
include Makedefs
# Subdirectories...
SUBDIRS = libcups/cups moauth moauthd
# Make everything...
all:
echo "CC=$(CC)"
echo "CFLAGS=$(CFLAGS)"
echo "CODESIGN_IDENTITY=$(CODESIGN_IDENTITY)"
echo "LDFLAGS=$(LDFLAGS)"
echo "LIBS=$(LIBS)"
for dir in $(SUBDIRS); do \
echo "======== all in $$dir ========"; \
(cd $$dir; $(MAKE) $(MFLAGS) all || exit 1); \
done
# Clean everything...
clean:
for dir in $(SUBDIRS); do \
echo "======== clean in $$dir ========"; \
(cd $$dir; $(MAKE) $(MFLAGS) clean || exit 1); \
done
# Really clean everything...
distclean: clean
$(RM) config.h config.log config.status Makedefs
# Install everything...
install: all
for dir in $(SUBDIRS); do \
echo "======== install in $$dir ========"; \
(cd $$dir; $(MAKE) $(MFLAGS) install || exit 1); \
done
# Test everything...
.PHONY: test
test:
for dir in moauth moauthd; do \
echo "======== test in $$dir ========"; \
(cd $$dir; $(MAKE) $(MFLAGS) test || exit 1); \
done
#
# Don't run top-level build targets in parallel...
#
.NOTPARALLEL: