diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 62 |
1 files changed, 16 insertions, 46 deletions
diff --git a/Makefile.am b/Makefile.am index a0f8bf973..cf2cdd13b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,7 +1,5 @@ # Top level Makefile for rpm -LINT = splint - CLEANFILES = EXTRA_DIST = CHANGES ChangeLog CREDITS Doxyheader GROUPS INSTALL \ autodeps autogen.sh \ @@ -22,6 +20,8 @@ AM_CPPFLAGS = \ -I$(top_srcdir)/misc \ @WITH_LIBELF_INCLUDE@ AM_CPPFLAGS += -DLOCALEDIR="\"$(localedir)\"" +AM_CPPFLAGS += -DRPMCONFIGDIR="\"@RPMCONFIGDIR@\"" +AM_CPPFLAGS += -DLIBRPMALIAS_FILENAME="\"@RPMCONFIGDIR@/rpmpopt-${VERSION}\"" staticLDFLAGS = @LDFLAGS_STATIC@ @LDFLAGS_NPTL@ @@ -79,28 +79,17 @@ rpmrc: $(top_srcdir)/rpmrc.in CLEANFILES += rpmrc.tmp rpmrc EXTRA_DIST += rpmrc.in -.PHONY: splint -splint: - splint \ - -load build/rpmbuild.lcd \ - -load lib/rpmlib.lcd \ - -load rpmdb/rpmdb.lcd \ - -load rpmio/rpmio.lcd \ - $(DEFS) $(AM_CPPFLAGS) rpmqv.c $(rpmb_SOURCES) - -.PHONY: lint -lint: - $(LINT) -Dlint $(DEFS) $(AM_CPPFLAGS) rpmqv.c $(rpmb_SOURCES) \ - `make -s sources -C build` \ - `make -s sources -C lib` \ - `make -s sources -C rpmdb` \ - `make -s sources -C rpmio` - -CVSTAG = r$(subst .,-,$(VERSION)) +macros: $(top_srcdir)/macros.in + @sed \ + -e "s,[@]varprefix[@],$(localstatedir),g" \ + < $(top_srcdir)/macros.in > macros.tmp \ + && ( cd $(top_builddir) && ./config.status --file=${subdir}/macros:${subdir}/macros.tmp ) +CLEANFILES += macros.tmp macros +EXTRA_DIST += macros.in pkgsrcdir = $(prefix)/src/$(RPMCANONVENDOR) -rpmvardir = $(varprefix)/lib/rpm +rpmvardir = $(localstatedir)/lib/rpm rpmvar_DATA = install-data-local: @@ -165,7 +154,7 @@ install-data-local: solaris*|linux*|darwin*) \ chmod u+x $(top_srcdir)/installplatform; DESTDIR="$(DESTDIR)" pkglibdir="$(pkglibdir)" $(top_srcdir)/installplatform rpmrc macros platform ;; \ esac - @$(MKDIR_P) $(DESTDIR)/var/tmp + @$(MKDIR_P) $(DESTDIR)$(localstatedir)/tmp # XXX to appease distcheck we need to remove "stuff" here... uninstall-local: @@ -193,10 +182,10 @@ setperms: $(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(pkglibdir)/$$f ;\ done @$(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(pkglibdir) - @$(__CHOWN) -R ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(varprefix)/lib/rpm - -@$(__CHMOD) 0664 $(DESTDIR)$(varprefix)/lib/rpm/[A-Z]* - -@$(__CHMOD) 0775 $(DESTDIR)$(varprefix)/lib/rpm - -@$(__CHMOD) 0664 $(DESTDIR)$(varprefix)/lib/rpm/__db.* + @$(__CHOWN) -R ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(rpmvardir) + -@$(__CHMOD) 0664 $(DESTDIR)$(rpmvardir)/[A-Z]* + -@$(__CHMOD) 0775 $(DESTDIR)$(rpmvardir) + -@$(__CHMOD) 0664 $(DESTDIR)$(rpmvardir)/__db.* .PHONY: unsetgid unsetgid: @@ -207,33 +196,14 @@ unsetgid: $(__CHMOD) g-s $(DESTDIR)$(pkglibdir)/$$f ;\ done -.PHONY: tar -tar: - rm -rf /tmp/rpm-$(VERSION) - $(MAKE) DESTDIR=/tmp/rpm-$(VERSION) install - cd /tmp/rpm-$(VERSION) ; tar cvf /tmp/rpm-$(VERSION).tar . - -.PHONY: noconfig -noconfig: - find . -name "Makefile" -exec rm {} \; - rm -f *gz *rpm config.* - .PHONY: doxygen doxygen @WITH_APIDOCS_TARGET@: Doxyfile rpmpopt-@VERSION@ rm -rf $@ $(MKDIR_P) $@ - [ X"@__DOXYGEN@" != Xno ] && @__DOXYGEN@ -ctags: - find . -type f -name "*.[ch]*" | xargs @CTAGS@ - -cscope: - @CSCOPE@ -b -R - -cref: ctags cscope - .PHONY: ChangeLog ChangeLog: - hg log -v > ChangeLog + hg log --no-merge -v > ChangeLog ACLOCAL_AMFLAGS = -I m4 |