forked from edeproject/ede
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (39 loc) · 1.29 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
#
# $Id: Makefile 1667 2006-06-14 16:28:31Z karijes $
#
# Part of Equinox Desktop Environment (EDE).
# Copyright (c) 2007 EDE Authors.
#
# This program is licensed under terms of the
# GNU General Public License version 2 or newer.
# See COPYING for details.
JAM_PATH=
define jam-cmd
@if [ -z $(JAM_PATH) ]; then \
if [ -x ./jam ]; then \
jam_path="./jam"; \
else \
jam_path=`which jam`; \
fi; \
else \
jam_path=$(JAM_PATH); \
fi; \
\
if [ -z $$jam_path ] || [ ! -x $$jam_path ]; then \
echo ""; \
echo "*** Unable to find jam either in `pwd`"; \
echo "*** or in $$PATH"; \
echo ""; \
else \
$$jam_path $1; \
fi
endef
all:
$(call jam-cmd)
.PHONY: clean
install:
$(call jam-cmd, install)
uninstall:
$(call jam-cmd, uninstall)
clean:
$(call jam-cmd, clean)