-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.inc
56 lines (42 loc) · 1.1 KB
/
Makefile.inc
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
# get filled by Makefile.inc files
TGT_TARGETS :=
CLEAN :=
TGT_INSTALL :=
INSTALLDIRS :=
UNINSTALL :=
DIST := configure install-sh Makefile.in Makefile.inc \
INSTALL LICENSE README.asciidoc
DISTCLEAN := Makefile config.log config.status
MAINTCLEAN := autom4te.cache
.PHONY: all
all: targets
include scripts/Makefile.inc
include src/Makefile.inc
include dist/Makefile.inc
include doc/Makefile.inc
.PHONY: targets
targets: $(TGT_TARGETS)
.PHONY: clean
clean:
rm -f $(CLEAN)
.PHONY: install
install: $(TGT_INSTALL)
$(TGT_INSTALL): installdirs
.PHONY: installdirs
installdirs: $(INSTALLDIRS)
$(INSTALLDIRS):
$(INSTALL) -d $@
.PHONY: uninstall
uninstall:
rm -f $(UNINSTALL)
.PHONY: maintainer-clean
maintainer-clean: clean distclean
@echo 'This command is intended for maintainers to use; it'
@echo 'deletes files that may need special tools to rebuild.'
rm -rf $(MAINTCLEAN)
tags: distclean
ctags -R
ctags -a --language-force=Sh `find . -name \*.in`
ctags -a --language-force=Make `find . -name \*.inc` Makefile.in
.SECONDARY: $(CLEAN) $(UNINSTALL)
# vim: set ft=make: