tags
Joey Hess
10 years ago
3 | 3 | build: Build/SysConfig.hs |
4 | 4 | $(CABAL) build |
5 | 5 | ln -sf dist/build/github-backup/github-backup github-backup |
6 | @$(MAKE) tags >/dev/null 2>&1 & | |
6 | 7 | |
7 | 8 | Build/SysConfig.hs: configure.hs Build/TestConfig.hs Build/Configure.hs |
8 | 9 | if [ "$(CABAL)" = ./Setup ]; then ghc --make Setup; fi |
15 | 16 | install -m 0644 github-backup.1 $(DESTDIR)$(PREFIX)/share/man/man1 |
16 | 17 | |
17 | 18 | clean: |
18 | rm -rf github-backup dist configure Build/SysConfig.hs Setup | |
19 | rm -rf github-backup dist configure Build/SysConfig.hs Setup tags | |
19 | 20 | find -name \*.o -exec rm {} \; |
20 | 21 | find -name \*.hi -exec rm {} \; |
21 | 22 | |
23 | 24 | hackage: clean |
24 | 25 | ./make-sdist.sh |
25 | 26 | @cabal upload dist/*.tar.gz |
27 | ||
28 | # hothasktags chokes on some template haskell etc, so ignore errors | |
29 | tags: | |
30 | find . | grep -v /.git/ | grep -v /tmp/ | grep -v /dist/ | grep -v /doc/ | egrep '\.hs$$' | xargs hothasktags > tags 2>/dev/null |