Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Makefile basics
Browse files Browse the repository at this point in the history
builds pugs by default. runs cabal configure when needed.

support 'make install'
  • Loading branch information
ingydotnet committed Oct 11, 2011
1 parent f5d5f76 commit 9a11832
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Pugs/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
pugs ::
INSTALLBIN = $(shell perl -MConfig -e 'print $$Config::Config{installbin}')

pugs: dist/build/pugs/pugs
cp $< $@

dist/build/pugs/pugs: dist/setup-config src/Pugs/*
cabal build
cp dist/build/pugs/pugs pugs

dist/setup-config:
cabal configure

install :: pugs
cp $< $(INSTALLBIN)/pugs
cp $< $(INSTALLBIN)/perl6

ghci ::
ghci ./dist/build/pugs/pugs-tmp/cbits/*o -idist/build/autogen -isrc src/Main.hs

clean :: distclean

distclean purge ::
rm -fr Pugs.buildinfo dist/ perlxsi.c
rm -fr pugs Pugs.buildinfo dist/ perlxsi.c

0 comments on commit 9a11832

Please sign in to comment.