-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (33 loc) · 1.01 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
# Copyright 2015 Hakan Mattsson
#
# See the file "LICENSE" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
include ./include.mk
SUBDIRS = src
all: Makefile lib/yaws
@for d in $(SUBDIRS); do \
if test ! -d $$d ; then \
echo "=== Skipping subdir $$d" ; \
else \
(cd $$d && $(MAKE) $@) ; \
fi ; \
done
# lib/yaws/done:
# (cd lib && git clone https://github.com/klacke/yaws.git)
# (cd lib/yaws && autoreconf -fi && ./configure && make)
# touch lib/yaws/done
lib/yaws: /opt/local/lib/yaws
ln -s /opt/local/lib/yaws lib/yaws
config_clean:
$(MAKE) clean
-rm -rf lib/yaws
-rm -rf configure include.mk autom4te.cache config.status config.log *~
clean: Makefile
rm -rf lib/yaws/done lib/yaws
@for d in $(SUBDIRS); do \
if test ! -d $$d ; then \
echo "=== Skipping subdir $$d" ; \
else \
(cd $$d && $(MAKE) $@) ; \
fi ; \
done