Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (35 sloc) 1.245 kB
394bb0c @mde Added binary and Makefile, updated README with build instructions and…
mde authored
1 #
28cd913 @mde Breaking this bastard up.
mde authored
2 # Jake JavaScript build tool
394bb0c @mde Added binary and Makefile, updated README with build instructions and…
mde authored
3 # Copyright 2112 Matthew Eernisse (mde@fleegix.org)
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17
28cd913 @mde Breaking this bastard up.
mde authored
18 .PHONY: all build install clean uninstall
394bb0c @mde Added binary and Makefile, updated README with build instructions and…
mde authored
19
cb98901 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
20 PREFIX=/usr/local
21 DESTDIR=
22
394bb0c @mde Added binary and Makefile, updated README with build instructions and…
mde authored
23 all: build
24
25 build:
ed1d6c3 @mde No really, just Jake.
mde authored
26 @echo 'Jake built.'
394bb0c @mde Added binary and Makefile, updated README with build instructions and…
mde authored
27
28 install:
bf2b3fb More API docs added.
mde authored
29 @mkdir -p $(DESTDIR)$(PREFIX)/bin && \
cb98901 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
30 mkdir -p $(DESTDIR)$(PREFIX)/lib/node_modules/jake && \
31 cp -R ./* $(DESTDIR)$(PREFIX)/lib/node_modules/jake/ && \
46f4418 @mde Use correct path for cli-symlink.
mde authored
32 ln -snf ../lib/node_modules/jake/bin/cli.js $(DESTDIR)$(PREFIX)/bin/jake && \
cb98901 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
33 chmod 755 $(DESTDIR)$(PREFIX)/lib/node_modules/jake/bin/cli.js && \
e12e679 @mde Jake is just Jake.
mde authored
34 echo 'Jake installed.'
394bb0c @mde Added binary and Makefile, updated README with build instructions and…
mde authored
35
36 clean:
37 @true
38
39 uninstall:
cb98901 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
40 @rm -f $(DESTDIR)$(PREFIX)/bin/jake && \
41 rm -fr $(DESTDIR)$(PREFIX)/lib/node_modules/jake/ && \
e12e679 @mde Jake is just Jake.
mde authored
42 echo 'Jake uninstalled.'
Something went wrong with that request. Please try again.