File: rules.mk

package info (click to toggle)
haskelldb 0.9.cvs.601-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 680 kB
  • ctags: 35
  • sloc: haskell: 4,392; sh: 1,792; makefile: 143
file content (25 lines) | stat: -rw-r--r-- 399 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
include $(TOP_DIR)/config.mk

SUBDIRS_CLEAN = $(addsuffix -clean, $(SUBDIRS))

.PHONY: default all $(SUBDIRS) clean $(SUBDIRS_CLEAN)

default: all

hugsload-%: %.hs
	$(HUGS) $(HUGSFLAGS) $^

hugsrun-%: %.hs
	$(RUNHUGS) $(HUGSFLAGS) $^

ghciload-%: %.hs
	$(GHCI) $(GHCFLAGS) $(LDFLAGS) $^

$(SUBDIRS):
	$(MAKE) -C $@

clean: $(SUBDIRS_CLEAN)

$(SUBDIRS_CLEAN):
	$(MAKE) -C $(subst -clean,,$@) clean