forked from nickjcroucher/gubbins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
22 lines (19 loc) · 805 Bytes
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
EXTRA_DIST=debian/* tests/*.h tests/data/*
SUBDIRS=src release python
ACLOCAL_AMFLAGS=-I m4
source: dist
cd release && make source
release: dist
cd release && make ubuntu-binary
cd release && make source
osx-package:
rm -rf ${PACKAGE}_${VERSION}_osx_10.8.tar.gz
rm -rf ${HOME}/files.lst
rm -rf ${HOME}/${PACKAGE}-${VERSION}-inst
./configure --prefix /usr
make
make DESTDIR=${HOME}/${PACKAGE}-${VERSION}-inst install
cd ${HOME}/${PACKAGE}-${VERSION}-inst && mv ${HOME}/${PACKAGE}-${VERSION}-inst/${HOME}/* .
cd ${HOME}/${PACKAGE}-${VERSION}-inst && rm -rf ${HOME}/${PACKAGE}-${VERSION}-inst/Users
cd ${HOME}/${PACKAGE}-${VERSION}-inst && find . -type f -print > ${HOME}/files.lst
cd ${HOME}/${PACKAGE}-${VERSION}-inst && tar zcvf ${PACKAGE}_${VERSION}_osx_10.8.tar.gz -T ${HOME}/files.lst