propellor spin
This commit is contained in:
parent
fc49d75e4f
commit
a1341ccb31
6
Makefile
6
Makefile
|
@ -7,7 +7,7 @@ dev: build tags
|
||||||
|
|
||||||
build: dist/setup-config
|
build: dist/setup-config
|
||||||
if ! $(CABAL) build; then $(CABAL) configure; $(CABAL) build; fi
|
if ! $(CABAL) build; then $(CABAL) configure; $(CABAL) build; fi
|
||||||
ln -sf dist/build/config/config propellor
|
ln -sf dist/build/propellor-config/propellor-config propellor
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
@if [ $$(whoami) = root ]; then apt-get --no-upgrade --no-install-recommends -y install gnupg ghc cabal-install libghc-missingh-dev libghc-ansi-terminal-dev libghc-ifelse-dev libghc-unix-compat-dev libghc-hslogger-dev libghc-network-dev libghc-quickcheck2-dev libghc-mtl-dev libghc-monadcatchio-transformers-dev; fi || true
|
@if [ $$(whoami) = root ]; then apt-get --no-upgrade --no-install-recommends -y install gnupg ghc cabal-install libghc-missingh-dev libghc-ansi-terminal-dev libghc-ifelse-dev libghc-unix-compat-dev libghc-hslogger-dev libghc-network-dev libghc-quickcheck2-dev libghc-mtl-dev libghc-monadcatchio-transformers-dev; fi || true
|
||||||
|
@ -19,13 +19,13 @@ dist/setup-config: propellor.cabal
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/src/propellor
|
install -d $(DESTDIR)/usr/bin $(DESTDIR)/usr/src/propellor
|
||||||
install -s dist/build/wrapper/wrapper $(DESTDIR)/usr/bin/propellor
|
install -s dist/build/propellor/propellor $(DESTDIR)/usr/bin/propellor
|
||||||
$(CABAL) sdist
|
$(CABAL) sdist
|
||||||
cat dist/propellor-*.tar.gz | \
|
cat dist/propellor-*.tar.gz | \
|
||||||
(cd $(DESTDIR)/usr/src/propellor && tar zx --strip-components=1)
|
(cd $(DESTDIR)/usr/src/propellor && tar zx --strip-components=1)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf dist Setup tags propellor propellor-wrapper privdata/local
|
rm -rf dist Setup tags propellor privdata/local
|
||||||
find -name \*.o -exec rm {} \;
|
find -name \*.o -exec rm {} \;
|
||||||
find -name \*.hi -exec rm {} \;
|
find -name \*.hi -exec rm {} \;
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@ Description:
|
||||||
.
|
.
|
||||||
It is configured using haskell.
|
It is configured using haskell.
|
||||||
|
|
||||||
Executable wrapper
|
Executable propellor
|
||||||
Main-Is: wrapper.hs
|
Main-Is: wrapper.hs
|
||||||
GHC-Options: -Wall -threaded -O0
|
GHC-Options: -Wall -threaded -O0
|
||||||
Hs-Source-Dirs: src
|
Hs-Source-Dirs: src
|
||||||
|
@ -45,7 +45,7 @@ Executable wrapper
|
||||||
if (! os(windows))
|
if (! os(windows))
|
||||||
Build-Depends: unix
|
Build-Depends: unix
|
||||||
|
|
||||||
Executable config
|
Executable propellor-config
|
||||||
Main-Is: config.hs
|
Main-Is: config.hs
|
||||||
GHC-Options: -Wall -threaded -O0
|
GHC-Options: -Wall -threaded -O0
|
||||||
Hs-Source-Dirs: src
|
Hs-Source-Dirs: src
|
||||||
|
|
Loading…
Reference in New Issue