Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Nov 20, 2020. It is now read-only.
forked from mascarenhas/cosmo
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
Latest commit
42 lines (32 loc) · 1.15 KB
/
Copy pathMakefile
File metadata and controls
42 lines (32 loc) · 1.15 KB
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
# $Id: Makefile,v 1.1.1.1 2007/11/26 17:12:24 mascarenhas Exp $
config_file:=config
ifneq '$(wildcard$(config_file))' ''
include$(config_file)
endif
$(config_file):
chmod +x configure
all:
install: $(config_file)
mkdir -p $(DESTDIR)$(LUA_DIR)
mkdir -p $(DESTDIR)$(LUA_DIR)/cosmo
cp src/cosmo.lua $(DESTDIR)$(LUA_DIR)/
cp src/cosmo/grammar.lua $(DESTDIR)$(LUA_DIR)/cosmo
cp src/cosmo/fill.lua $(DESTDIR)$(LUA_DIR)/cosmo
install-rocks: install
mkdir -p $(PREFIX)/samples
cp -r samples/*$(PREFIX)/samples
mkdir -p $(PREFIX)/doc
cp -r doc/*$(PREFIX)/doc
mkdir -p $(PREFIX)/tests
cp -r tests/*$(PREFIX)/tests
echo"Go to $(PREFIX) for samples and docs!"
test:
cd tests && lua -l luarocks.require test_cosmo.lua
upload-cvs:
git archive --format=tar --prefix=cosmo-current/ master | gzip > cosmo-current.tar.gz
ncftpput -u mascarenhas ftp.luaforge.net cosmo/htdocs cosmo-current.tar.gz
upload-dist:
git archive --format=tar --prefix=cosmo-$(VERSION)/ v$(VERSION)| gzip > cosmo-$(VERSION).tar.gz
ncftpput -u mascarenhas ftp.luaforge.net cosmo/htdocs cosmo-$(VERSION).tar.gz
ncftpput -u mascarenhas ftp.luaforge.net cosmo/htdocs doc/index.html
clean: