Updated build system as per Ralf's suggestions to Chapter 9 in Autotools book.
git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@1108 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
@@ -6,18 +6,16 @@ SUBDIRS = src obs
|
||||
|
||||
doc_DATA = AUTHORS ChangeLog COPYING INSTALL NEWS README
|
||||
|
||||
pkgconfigdir = $(libdir)/pkgconfig
|
||||
pkgconfig_DATA = libflaimsql.pc
|
||||
|
||||
RPM = rpm
|
||||
|
||||
rpms srcrpm: dist
|
||||
(cd obs && $(MAKE) $(AM_MAKEFLAGS) $@) || exit 1
|
||||
rpmarch=`$(RPM) --showrc | grep "^build arch" | sed 's/\(.*: \)\(.*\)/\2/'`; \
|
||||
test -z "$$rpmarch" || ( mv $$rpmarch/* . && rm -rf $$rpmarch )
|
||||
rm -rf $(distdir)
|
||||
test -z "obs/$$rpmarch" || ( mv obs/$$rpmarch/* . && rm -rf obs/$$rpmarch )
|
||||
rm -rf obs/$(distdir)
|
||||
|
||||
dist-hook:
|
||||
rm -rf `find $(distdir) -name .svn`
|
||||
|
||||
.PHONY: srcrpm rpms
|
||||
|
||||
|
||||
Reference in New Issue
Block a user