Skip to content
Snippets Groups Projects
Commit a2fc1c8b authored by Isaac Potoczny-Jones's avatar Isaac Potoczny-Jones
Browse files

added hugs bootstrap and install targets

parent 469466d4
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,19 @@ build-stamp: config ...@@ -33,6 +33,19 @@ build-stamp: config
install: build-stamp install: build-stamp
./setup install $(USER_FLAG) ./setup install $(USER_FLAG)
hugsbootstrap:
rm -rf dist/tmp
mkdir -p dist/tmp
mkdir dist/hugs
cp -r Distribution Compat dist/tmp
hugs-package dist/tmp dist/hugs
cp Setup.lhs Setup.description dist/hugs
hugsinstall: hugsbootstrap
cd dist/hugs && ./Setup.lhs configure --hugs
cd dist/hugs && ./Setup.lhs build
cd dist/hugs && ./Setup.lhs install
# Lame for now. I don't mind though, because cabal itself should be # Lame for now. I don't mind though, because cabal itself should be
# able to do this soon. Needs cpphs. # able to do this soon. Needs cpphs.
haddock: haddock:
...@@ -69,6 +82,7 @@ clean-cabal: ...@@ -69,6 +82,7 @@ clean-cabal:
-rm -f library-infrastructure--darcs.tar.gz -rm -f library-infrastructure--darcs.tar.gz
-rm -rf setup *.o *.hi moduleTest dist installed-pkg-config -rm -rf setup *.o *.hi moduleTest dist installed-pkg-config
-rm -f build-stamp -rm -f build-stamp
-rm -rf dist/hugs
clean-hunit: clean-hunit:
-rm -f hunit-stamp hunitInstall-stamp -rm -f hunit-stamp hunitInstall-stamp
......
#!/usr/bin/runhugs #!/usr/bin/runhugs -98
> module Main where > module Main where
......
* misc * misc
** give usage message before erroring when no description file?
** give better error message for missing description file
** unregistering the package, etc ** unregistering the package, etc
*** think about HC-PKG's role here. maybe HC-PKG should do all this *** think about HC-PKG's role here. maybe HC-PKG should do all this
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment