-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.am
63 lines (44 loc) · 1.77 KB
/
Makefile.am
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
AUTOMAKE_OPTIONS = no-dependencies foreign
ACLOCAL_AMFLAGS=-I ac-macros
info_TEXINFOS = docs/drift.texi
docs/drift.html: docs/drift.texi
texi2html -monolithic $< -o $@
SUBDIRS = src example
EXTRA_DIST = configure.ac \
Changelog README.old drift-ghc.in code \
code/FunctorM.hs code/GhcBinary.hs code/README.txt \
ac-macros/acincludepackage.m4 LICENSE docs/drift.html \
DrIFT.spec DrIFT.cabal
bin_SCRIPTS = drift-ghc
PUBLISH_DIR = /home/john/public_html/computer/haskell/DrIFT
PUBLISH_FILES = docs/drift.html docs/drift.ps drift-list.txt
BINDISTNAME=@PACKAGE_NAME@-@VERSION@-`uname -s`-`uname -m`
bin-dist:
(cd ./src; $(MAKE) bin-dist)
mv ./src/$(BINDISTNAME).tar.gz .
drift-list.txt: src/DrIFT
src/DrIFT -l > drift-list.txt
publish: drift-list.txt docs bin-dist dist # rpm
rm -f -- $(PUBLISH_DIR)/drop/$(PACKAGE_NAME)-*-*-*.tar.gz
# rm -f -- $(PUBLISH_DIR)/drop/$(PACKAGE)-*.rpm
rm -f -- "$(PUBLISH_DIR)/drop/$(PACKAGE_NAME)-$(VERSION).tar.gz"
cp -- "$(BINDISTNAME).tar.gz" "$(PUBLISH_DIR)/drop"
cp -- "$(PACKAGE_NAME)-$(VERSION).tar.gz" "$(PUBLISH_DIR)/drop"
cp -- $(PUBLISH_FILES) $(PUBLISH_DIR)
# cp -- "$(HOME)/redhat/RPMS/i386/$(PACKAGE)-$(VERSION)-1.i386.rpm" "$(PUBLISH_DIR)/drop"
# cp -- "$(HOME)/redhat/SRPMS/$(PACKAGE)-$(VERSION)-1.src.rpm" "$(PUBLISH_DIR)/drop"
cp -- Changelog $(PUBLISH_DIR)
make -C $(PUBLISH_DIR) || true
src/Rules.hs:
make -C src Rules.hs
cabal-install: src/Rules.hs docs/drift.info
cabal install
cabal-dist: src/Rules.hs docs/drift.info
runhaskell Setup.hs sdist
rpm: depend $(PACKAGE_NAME).spec dist
cp $(PACKAGE_NAME)-$(VERSION).tar.gz $(HOME)/var/rpm/SOURCES/
rpmbuild -ba $(PACKAGE_NAME).spec
depend:
$(MAKE) -C src depend
docs: docs/drift.html docs/drift.ps
.PHONY: docs depend rpm publish bin-dist