File: Makefile

package info (click to toggle)
lisaac 1%3A0.39~rc1-3
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 54,676 kB
  • ctags: 11,932
  • sloc: ansic: 241,947; java: 11,572; xml: 1,389; lisp: 456; sh: 80; makefile: 43
file content (60 lines) | stat: -rw-r--r-- 2,165 bytes parent folder | download | duplicates (3)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#                   This file is part of Lisaac compiler.
#                     http://isaacproject.u-strasbg.fr/
#                    LSIIT - ULP - CNRS - INRIA - FRANCE
#
#   This program is free software: you can redistribute it and/or modify    
#   it under the terms of the GNU General Public License as published by    
#   the Free Software Foundation, either version 3 of the License, or       
#   (at your option) any later version.                                    
#                                                                           
#   This program is distributed in the hope that it will be useful,         
#   but WITHOUT ANY WARRANTY; without even the implied warranty of          
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           
#   GNU General Public License for more details.                            
#                                                                           
#   You should have received a copy of the GNU General Public License       
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.   


LIB=/usr/share/lisaac
EXAMPLE=/examples
HTML=/html
PDF=/pdf
BIN=/usr/bin
MAN=/usr/share/man/man1
DOC=/usr/share/doc/lisaac-doc
EMACS=/usr/share/emacs/site-lisp/lisaac-mode
DESTDIR=

CC=gcc
CFLAGS=-O2

all: bin/lisaac

bin/path.h:
	@echo "#define LISAAC_DIRECTORY \"$(LIB)\"" > bin/path.h

bin/lisaac: bin/lisaac.c bin/path.h
	$(CC) $(CFLAGS) $< -o $@

install:
	mkdir -p $(DESTDIR)$(LIB)
	mkdir -p $(DESTDIR)$(BIN)
	mkdir -p $(DESTDIR)$(MAN)
	mkdir -p $(DESTDIR)$(DOC)$(PDF)
	mkdir -p $(DESTDIR)$(DOC)$(EXAMPLE)
	mkdir -p $(DESTDIR)$(EMACS)
	cp bin/lisaac  $(DESTDIR)$(BIN)
	cp -rf lib/  $(DESTDIR)$(LIB)
	cp make.lip.sample $(DESTDIR)$(LIB)/make.lip
#	this seems really too unstable to be packed
	rm -rf $(DESTDIR)$(LIB)/lib/unstable/freetype
	cp -rf example/* $(DESTDIR)$(DOC)$(EXAMPLE)
	rm -rf $(DESTDIR)$(DOC)$(EXAMPLE)/shootout
	rm -rf $(DESTDIR)$(DOC)$(EXAMPLE)/gui/clock/.avoir.txt.swp
	cp -rf doc/man/*.gz  $(DESTDIR)$(MAN)
	cp -rf doc/pdf/*     $(DESTDIR)$(DOC)$(PDF)
	cp -f editor/emacs/lisaac-mode.el $(DESTDIR)$(EMACS)

clean:
	rm -f bin/path.h bin/lisaac