Change over to GNU build system - part 1

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@1056 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
jcalcote
2008-06-26 17:02:11 +00:00
parent 91f9f1b91c
commit e7548d8b4c
350 changed files with 4510 additions and 841 deletions

26
sql/obs/Makefile.am Normal file
View File

@@ -0,0 +1,26 @@
rpmspec = $(PACKAGE_TARNAME).spec
rpmmacros =\
--define='_rpmdir $(PWD)'\
--define='_srcrpmdir $(PWD)'\
--define='_sourcedir $(PWD)'\
--define='_specdir $(PWD)'\
--define='_builddir $(PWD)'
rpmopts = --nodeps --buildroot='$(PWD)/_rpm'
rpmcheck:
@which rpmbuild &> /dev/null; \
if [ $$? -ne 0 ]; then \
echo "*** This make target requires an rpm-based linux distribution."; \
(exit 1); exit 1; \
fi
srcrpm: rpmcheck $(rpmspec)
rpmbuild -bs $(rpmmacros) $(rpmopts) $(rpmspec)
rpms: rpmcheck $(rpmspec)
rpmbuild -ba $(rpmmacros) $(rpmopts) $(rpmspec)
.PHONY: rpmcheck srcrpm rpms