File: Makefile

package info (click to toggle)
gtkrsync 1.0.4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 236 kB
  • ctags: 4
  • sloc: haskell: 222; makefile: 71; sh: 62
file content (33 lines) | stat: -rw-r--r-- 718 bytes parent folder | download
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
# arch-tag: Primary makefile
# Copyright (c) 2004-2006 John Goerzen
#

DESTDIR ?= /usr/local
all: setup			# GHC build
	./setup configure --prefix=$(DESTDIR)
	./setup build

install:
	./setup install
	@echo "Please manually install docs/gtkrsync.1"

hugsbuild: setup
	./setup configure --hugs
	./setup build

setup: Setup.lhs
	ghc -package Cabal Setup.lhs -o setup

clean: clean-code clean-doc

clean-code:
	-./setup clean
	-cd libsrc && ../setup clean
	-rm -rf dist libsrc/dist *.ho *.hi *.o *.a setup *~
	-rm -f `find . -name "*~"` `find . -name "*.o"`
	-rm -f `find . -name "*.cm*"`

clean-doc:
	-cd doc && scons -c && scons -c html pdf text ps gtkrsync.1
	-rm -rf docs/.sconsign* .depend test
	-rm -f docs/manpage*