-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 1.16 KB
/
Copy pathMakefile
File metadata and controls
48 lines (38 loc) · 1.16 KB
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
include local.mk
include play.mk
MKMK=./jmscott-play.mkmk
BINs := $(shell (. $(MKMK) && echo $$BINs))
SRCs := $(shell (. $(MKMK) && echo $$SRCs))
COMPILEs := $(shell (. $(MKMK) && echo $$COMPILEs))
all: $(COMPILEs)
cd floq && $(_MAKE) all
clean:
cd floq && $(_MAKE) clean
rm -f $(COMPILEs)
install-dirs:
install -g $(INSTALL_GROUP) -o $(INSTALL_USER) -m u=rwx,go=rx \
-d $(PLAY_PREFIX)
install -g $(INSTALL_GROUP) -o $(INSTALL_USER) -m u=rwx,go=rx \
-d $(PLAY_PREFIX)/bin
install -g $(INSTALL_GROUP) -o $(INSTALL_USER) -m u=rwx,go=rx \
-d $(PLAY_PREFIX)/lib
install -g $(INSTALL_GROUP) -o $(INSTALL_USER) -m u=rwx,go=rx \
-d $(PLAY_PREFIX)/src
install: install-dirs all
cd floq && $(_MAKE) install
install -g $(INSTALL_GROUP) -o $(INSTALL_USER) -m ugo=xr \
$(COMPILEs) \
$(PLAY_PREFIX)/bin
install -g $(INSTALL_GROUP) -o $(INSTALL_USER) -m u=rwx,go=rx \
$(SRCs) \
$(PLAY_PREFIX)/src
utf8-frisk: utf8-frisk.c
cc -Wall -Wextra -o utf8-frisk utf8-frisk.c
tar: all
make-make tar $(MKMK)
distclean:
cd floq && $(_MAKE) distclean
rm -rf $(PLAY_PREFIX)/bin
rm -rf $(PLAY_PREFIX)/src
world: clean all distclean install
cd floq && $(_MAKE) world