Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 43 lines (35 sloc) 1.284 kb
7d954aa @mde Added licensing notice.
mde authored
1 #
2 # Geddy JavaScript Web development framework
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
10349a1 @mde Get stuff to work post-install.
mde authored
18 .PHONY: all build install clean uninstall
140ad66 Working on installer, geddy-gen.
mde authored
19
43b5d66 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
20 PREFIX=/usr/local
21 DESTDIR=
22
fa906c3 Bundled Jake dependency, sepearated build from install task, started wor...
mde authored
23 all: build
140ad66 Working on installer, geddy-gen.
mde authored
24
fa906c3 Bundled Jake dependency, sepearated build from install task, started wor...
mde authored
25 build:
10349a1 @mde Get stuff to work post-install.
mde authored
26 @echo 'Geddy built.'
91599f5 Pulled out demo app, migrated installation and app-gen to Jake.
mde authored
27
140ad66 Working on installer, geddy-gen.
mde authored
28 install:
43b5d66 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
29 @mkdir -p $(DESTDIR)$(PREFIX)/bin \
30 mkdir -p $(DESTDIR)$(PREFIX)/lib/node_modules/geddy && \
31 cp -R ./* $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/ && \
32 ln -snf $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/bin/cli.js $(DESTDIR)$(PREFIX)/bin/geddy && \
33 chmod 755 $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/bin/cli.js && \
10349a1 @mde Get stuff to work post-install.
mde authored
34 echo 'Geddy installed.'
91599f5 Pulled out demo app, migrated installation and app-gen to Jake.
mde authored
35
36 clean:
10349a1 @mde Get stuff to work post-install.
mde authored
37 @true
f5191c0 Fixed clean/uninstall snafu.
mde authored
38
39 uninstall:
43b5d66 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
40 @rm -f $(DESTDIR)$(PREFIX)/bin/geddy && \
41 rm -fr $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/ && \
10349a1 @mde Get stuff to work post-install.
mde authored
42 echo 'Geddy uninstalled.'
Something went wrong with that request. Please try again.