-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (41 loc) · 1.24 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
include local.mk
include play.mk
DIST=./jmscott-play.dist
BINs := $(shell (. $(DIST) && echo $$BINs))
SRCs := $(shell (. $(DIST) && echo $$SRCs))
LIBs := $(shell (. $(DIST) && echo $$LIBs))
COMPILED := $(shell (. $(DIST) && echo $$COMPILED))
all: $(COMPILED)
clean:
rm -f $(COMPILED)
install: all
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)/src
install -g $(INSTALL_GROUP) -o $(INSTALL_USER) -m u=rwx,go=rx \
-d $(PLAY_PREFIX)/lib
install -g $(INSTALL_GROUP) -o $(INSTALL_USER) -m ugo=xr \
$(COMPILED) \
$(PLAY_PREFIX)/bin
install -g $(INSTALL_GROUP) -o $(INSTALL_USER) -m u=rwx,go=rx \
$(SRCs) \
$(PLAY_PREFIX)/src
install -g $(INSTALL_GROUP) -o $(INSTALL_USER) -m ugo=r \
$(LIBs) \
$(PLAY_PREFIX)/lib
utf8-frisk: utf8-frisk.c
cc -Wall -Wextra -o utf8-frisk utf8-frisk.c
dist: all
make-dist $(DIST)
distclean:
rm -rf $(PLAY_PREFIX)/bin
rm -rf $(PLAY_PREFIX)/lib
rm -rf $(PLAY_PREFIX)/src
world:
$(MAKE) $(MFLAGS) clean
$(MAKE) $(MFLAGS) all
$(MAKE) $(MFLAGS) distclean
$(MAKE) $(MFLAGS) install