-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (32 loc) · 1.31 KB
/
Copy pathMakefile
File metadata and controls
45 lines (32 loc) · 1.31 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
43
44
45
# Copyright 2008 Markus Dittrich <markusle@gmail.com>
# Distributed under the terms of the GNU General Public License v3
VERSION=0.0-alpha
DESTDIR=
mandir=$(DESTDIR)/usr/share/man/man1
docdir=$(DESTDIR)/usr/share/doc/archy-$(VERSION)
htmldir=$(docdir)/html
bindir=$(DESTDIR)/usr/bin
GHC_FLAGS_DEVEL = -O -fwarn-incomplete-patterns -fwarn-incomplete-record-updates -fwarn-missing-fields -fwarn-missing-methods -fwarn-missing-signatures -fwarn-name-shadowing -fwarn-orphans -fwarn-overlapping-patterns -fwarn-simple-patterns -fwarn-tabs -fwarn-type-defaults -fwarn-monomorphism-restriction -fwarn-unused-binds -fwarn-unused-imports -fwarn-unused-matches
GHC_FLAGS_RELEASE = -O2
OBJECTS = src/archy.hs src/ApplicativeParsec.hs src/ArchyCommon.hs \
src/AURConnector.hs src/CommandLineParser.hs \
src/DisplayFunctions.hs \
src/Json.hs src/PacmanWrapper.hs src/PrettyPrint.hs
all: debug
archy: $(OBJECTS)
ghc -i./src $(GHC_FLAGS_RELEASE) --make src/archy.hs
debug: $(OBJECTS)
ghc -i./src $(GHC_FLAGS_DEVEL) --make src/archy.hs
@chpax -m src/archy
test: archy
make -C test
install:
install -d $(docdir)
install -d $(mandir)
install -d $(bindir)
install -m 0755 src/archy $(bindir)/
install -m 0644 COPYING AUTHORS $(docdir)/
#install -m 0644 man/pasty.1 $(mandir)/
.PHONY: clean
clean:
rm -f src/*.o src/*.hi src/archy