-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathjava.mk
58 lines (44 loc) · 1.41 KB
/
java.mk
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
57
58
# apps/java.mk
#
# Part of the CCNx distribution.
#
# Copyright (C) 2009-2012 Palo Alto Research Center, Inc.
#
# This work is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by the
# Free Software Foundation.
# This work is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.
#
include ../conf.mk
LIBS = $(JAR)
default all: jar
check: test
install:
@test -f $(JAR) && $(MAKE) real_install \
DINST_LIB=$(DINST_LIB) \
DINST_BIN=$(DINST_BIN) || $(WARN_NO_INSTALL)
real_install: _always
test -d $(DINST_LIB)
for i in $(LIBS) ""; do test -z "$$i" || $(INSTALL) $$i $(DINST_LIB); done
test -d $(DINST_BIN)
# Using -R on . dir to preserve sym links
$(CP) -R tools/. $(DINST_BIN)
uninstall:
for i in $(LIBS) ""; do test -z "$$i" || rm -f $(DINST_LIB)/`basename $$i`; done
for i in `$(LS) tools` "" ; do test -z "$$i" || rm -f $(DINST_BIN)/`basename $$i`; done
# Use ant to actually do the work for these targets
jar test: _always
$(ANT) -k $@
@rm -f _always
clean: _always
$(ANT) -k clean
rm -f _always $(JAR)
documentation: _always
dist-docs: _always
testinstall:
@echo No $@ target for `pwd`
default all clean depend test check shared install uninstall: _always
_always:
.PHONY: _always