[email protected] (Trent W. Buck) writes: > For my (non-Haskell library) packages, I have switched from using CDBS > to dh(1), a new feature in debhelper (>= 7). In general I have found > dh(1) makefiles easier to maintain because they have fewer "magic > variables".
I guess a Haskell app is a lot simpler than a Haskell library to package, but here's the debhelper 7.2 way for Darcs. When dh_auto_* know about Setup.lhs in the same way they currently know about setup.py an Makefile.PL, all the override_* targets will disappear. There's a patch in http://bugs.debian.org/499225. #!/usr/bin/make -f # Work around #481592 (Closes: #485631). Remove when #481592 closes! CFLAGS := $(filter-out -g,$(CFLAGS)) %: dh $@ override_dh_auto_build: runghc Setup build override_dh_auto_clean: runghc Setup clean override_dh_auto_configure: runghc Setup configure override_dh_auto_install: runghc Setup copy --destdir=$(CURDIR)/darcs override_dh_auto_test: runghc Setup test -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]
