File: Makefile

package info (click to toggle)
haskelldb 0.9.cvs.601-13
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 680 kB
  • ctags: 33
  • sloc: haskell: 4,392; sh: 1,900; makefile: 130
file content (75 lines) | stat: -rw-r--r-- 1,926 bytes parent folder | download | duplicates (2)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
TOP_DIR = .

SUBDIRS = doc test

include $(TOP_DIR)/rules.mk

DIST_DIR = haskelldb-$(PACKAGE_VERSION)

ALL_COMPILERS               = $(addprefix all-,$(COMPILERS))
INSTALL_COMPILERS           = $(addprefix install-,$(COMPILERS))
INSTALL_FILESONLY_COMPILERS = $(addprefix install-filesonly-,$(COMPILERS))
UNINSTALL_COMPILERS         = $(addprefix uninstall-,$(COMPILERS))
CLEAN_COMPILERS             = $(addprefix clean-,$(COMPILERS))

.PHONY: install uninstall \
	dist distclean maintainer-clean \
        $(ALL_COMPILERS) \
        $(INSTALL_COMPILERS) \
        $(INSTALL_FILESONLY_COMPILERS) \
	$(UNINSTALL_COMPILERS) \
        $(CLEAN_COMPILERS)

$(ALL_COMPILERS):
	$(MAKE) -f $(subst all-,Makefile., $@) all

$(INSTALL_COMPILERS):
	$(MAKE) -f $(subst install-,Makefile., $@) install

$(INSTALL_FILESONLY_COMPILERS):
	$(MAKE) -f $(subst install-filesonly-,Makefile., $@) install-filesonly

$(UNINSTALL_COMPILERS):
	$(MAKE) -f $(subst uninstall-,Makefile., $@) uninstall

$(CLEAN_COMPILERS):
	$(MAKE) -f $(subst clean-,Makefile., $@) clean

default all: $(ALL_COMPILERS)

configure: configure.ac aclocal.m4
	autoconf

config.status: configure
	./config.status --recheck

# Causes autoconf and configure to be run when doing clean
#config.mk: config.mk.in config.status
#	./config.status

# Should be in Makefile.ghc
haskelldb.pkg: haskelldb.pkg.in config.status
	./config.status

install: all $(INSTALL_COMPILERS)

uninstall: $(UNINSTALL_COMPILERS)

clean: $(CLEAN_COMPILERS)
	-rm -rf $(BUILD_DIR)

dist:
	mkdir $(DIST_DIR)
	cvs export -d $(DIST_DIR) -rHEAD haskelldb
	cd $(DIST_DIR) && autoconf && rm -rf autom4te.cache
	find $(DIST_DIR) -name .cvsignore -exec rm -f {} ';'
	tar -zcf $(DIST_DIR).tar.gz $(DIST_DIR)
	zip -r $(DIST_DIR).zip $(DIST_DIR)
	rm -rf $(DIST_DIR)

distclean: clean
	-rm -f config.status config.mk config.log haskelldb.pkg
	-rm -rf autom4te.cache

maintainer-clean: distclean
	-rm -f *.tar.gz *.zip