Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 45 lines (37 sloc) 1.319 kb
394bb0c @mde Added binary and Makefile, updated README with build instructions and re...
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 re...
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 re...
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 re...
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 re...
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 && \
9ff7bc9 Added steps for installing minimatch/utilities for "make install"
mde authored
31 mkdir -p ./node_modules && \
32 npm install utilities minimatch && \
cb98901 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
33 cp -R ./* $(DESTDIR)$(PREFIX)/lib/node_modules/jake/ && \
46f4418 @mde Use correct path for cli-symlink.
mde authored
34 ln -snf ../lib/node_modules/jake/bin/cli.js $(DESTDIR)$(PREFIX)/bin/jake && \
cb98901 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
35 chmod 755 $(DESTDIR)$(PREFIX)/lib/node_modules/jake/bin/cli.js && \
e12e679 @mde Jake is just Jake.
mde authored
36 echo 'Jake installed.'
394bb0c @mde Added binary and Makefile, updated README with build instructions and re...
mde authored
37
38 clean:
39 @true
40
41 uninstall:
cb98901 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
42 @rm -f $(DESTDIR)$(PREFIX)/bin/jake && \
43 rm -fr $(DESTDIR)$(PREFIX)/lib/node_modules/jake/ && \
e12e679 @mde Jake is just Jake.
mde authored
44 echo 'Jake uninstalled.'
Something went wrong with that request. Please try again.