-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
28 lines (25 loc) · 990 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
23
24
25
26
27
SUBDIRS = src
# make a small distribution with just one DSSI plugin
%.dist:
mkdir $*.dist
mkdir $*.dist/src
cp -R src/common $*.dist/src/common
cp -R src/components $*.dist/src/components
# cp -R src/gui-components $*.dist/src/gui-components
cp -R src/$* $*.dist/src/$*
cp $*.dist/src/$*/README.$* $*.dist/README
echo "SUBDIRS = common components $*" > $*.dist/src/Makefile.am
cp Makefile.am $*.dist/Makefile.am
cp configure.ac $*.dist/configure.ac
cp AUTHORS NEWS ChangeLog $*.dist/
touch $*.dist/NEWS $*.dist/README $*.dist/ChangeLog
perl -pi -e 's/AC_CONFIG_FILES.*/AC_CONFIG_FILES\(\[Makefile src\/Makefile src\/common\/Makefile src\/components\/Makefile src\/'$*'\/Makefile\]\)/' $*.dist/configure.ac
perl -pi -e 's/ll-plugins/'$*'/g' $*.dist/configure.ac
cd $*.dist && libtoolize --copy --force
cd $*.dist && aclocal
cd $*.dist && automake -a -c
cd $*.dist && autoconf
cd $*.dist && ./configure
cd $*.dist && make dist
mv $*.dist/$*-*.tar.gz .
rm -rf $*.dist