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

Commit 9a11832

Browse files
committed
Makefile basics
builds pugs by default. runs cabal configure when needed. support 'make install'
1 parent f5d5f76 commit 9a11832

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Pugs/Makefile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
1-
pugs ::
1+
INSTALLBIN = $(shell perl -MConfig -e 'print $$Config::Config{installbin}')
2+
3+
pugs: dist/build/pugs/pugs
4+
cp $< $@
5+
6+
dist/build/pugs/pugs: dist/setup-config src/Pugs/*
27
cabal build
3-
cp dist/build/pugs/pugs pugs
8+
9+
dist/setup-config:
10+
cabal configure
11+
12+
install :: pugs
13+
cp $< $(INSTALLBIN)/pugs
14+
cp $< $(INSTALLBIN)/perl6
415

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

819
clean :: distclean
920

1021
distclean purge ::
11-
rm -fr Pugs.buildinfo dist/ perlxsi.c
22+
rm -fr pugs Pugs.buildinfo dist/ perlxsi.c
1223

0 commit comments

Comments
 (0)