forked from dlang/dmd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
posix.mak
27 lines (21 loc) · 792 Bytes
/
posix.mak
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
INSTALL_DIR=$(PWD)/../install
ECTAGS_LANGS = Make,C,C++,Sh
ECTAGS_FILES = src/*.[ch] src/backend/*.[ch] src/root/*.[ch] src/tk/*.[ch]
.PHONY: all clean test install
all:
$(QUIET)$(MAKE) -C src -f posix.mak
clean:
$(QUIET)$(MAKE) -C src -f posix.mak clean
$(QUIET)$(MAKE) -C test -f Makefile clean
$(RM) tags
test:
$(QUIET)$(MAKE) -C test -f Makefile
# Creates Exuberant Ctags tags file
tags: posix.mak $(ECTAGS_FILES)
ctags --sort=yes --links=no --excmd=number --languages=$(ECTAGS_LANGS) \
--langmap='C++:+.c,C++:+.h' --extra=+f --file-scope=yes --fields=afikmsSt --totals=yes posix.mak $(ECTAGS_FILES)
install: all
$(MAKE) INSTALL_DIR=$(INSTALL_DIR) -C src -f posix.mak install
cp -r samples $(INSTALL_DIR)
mkdir -p $(INSTALL_DIR)/man
cp -r docs/man/* $(INSTALL_DIR)/man/