Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 55 lines (45 sloc) 1.742 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
6f27387 @larzconwell Created Jade engine wrapper that mimics the layout for ejs, and vario…
larzconwell authored
18 .PHONY: all build install clean uninstall reinstall
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 …
mde authored
23 all: build
140ad66 Working on installer, geddy-gen.
mde authored
24
fa906c3 Bundled Jake dependency, sepearated build from install task, started …
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:
1db0f07 @mde Fixed broken shell-command in Makefile.
mde authored
29 @mkdir -p $(DESTDIR)$(PREFIX)/bin && \
9364322 @MiguelMadero Adds quick install
MiguelMadero authored
30 mkdir -p $(DESTDIR)$(PREFIX)/lib/node_modules/geddy && \
31 mkdir -p ./node_modules && \
32 npm install jake utilities model barista && \
33 cp -R ./* $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/ && \
34 ln -snf ../lib/node_modules/geddy/bin/cli.js $(DESTDIR)$(PREFIX)/bin/geddy && \
35 chmod 755 $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/bin/cli.js && \
36 echo 'Geddy installed.'
37
38 quickinstall:
39 @mkdir -p $(DESTDIR)$(PREFIX)/bin && \
40 mkdir -p $(DESTDIR)$(PREFIX)/lib/node_modules/geddy && \
43b5d66 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
41 cp -R ./* $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/ && \
fc03706 @mde Use correct path for cli-symlink.
mde authored
42 ln -snf ../lib/node_modules/geddy/bin/cli.js $(DESTDIR)$(PREFIX)/bin/geddy && \
43b5d66 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
43 chmod 755 $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/bin/cli.js && \
10349a1 @mde Get stuff to work post-install.
mde authored
44 echo 'Geddy installed.'
91599f5 Pulled out demo app, migrated installation and app-gen to Jake.
mde authored
45
46 clean:
10349a1 @mde Get stuff to work post-install.
mde authored
47 @true
f5191c0 Fixed clean/uninstall snafu.
mde authored
48
49 uninstall:
43b5d66 @mde Added PREFIX and DESTDIR vars to Makefile.
mde authored
50 @rm -f $(DESTDIR)$(PREFIX)/bin/geddy && \
51 rm -fr $(DESTDIR)$(PREFIX)/lib/node_modules/geddy/ && \
10349a1 @mde Get stuff to work post-install.
mde authored
52 echo 'Geddy uninstalled.'
6f27387 @larzconwell Created Jade engine wrapper that mimics the layout for ejs, and vario…
larzconwell authored
53
54 reinstall: uninstall install
Something went wrong with that request. Please try again.