Makefile.in 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. VPATH = @srcdir@
  2. srcdir = @srcdir@
  3. top_srcdir = @top_srcdir@
  4. VERSION = $(shell cat version-nr)
  5. GENFILES = version.h
  6. default: all
  7. include Makefile.conf
  8. SUBDIRS = include optlib lib intl dpkg-deb split scripts utils main \
  9. @DSELECTDIR@ po methods man doc
  10. all: version.h all-recursive
  11. install: all install-recursive
  12. $(mkinstalldirs) $(DESTDIR)$(dpkgconfdir)/origins
  13. $(INSTALL_DATA) $(srcdir)/origin $(DESTDIR)$(dpkgconfdir)/origins/debian
  14. clean: clean-recursive
  15. rm -f $(GENFILES)
  16. distclean: clean distclean-recursive
  17. rm -f Makefile.conf Makefile config.cache config.h config.log config.status
  18. rm -f automake/gettext.m4 automake/progtest.m4 automake/lcmessage.m4
  19. version.h: version-nr
  20. echo "#define DPKG_VERSION \"$(VERSION)\" /* This line modified by Makefile */" > version.h
  21. all-recursive install-recursive clean-recursive distclean-recursive: %-recursive:
  22. $(MAKE) $(MFLAGS) $(patsubst %,$*-%,$(SUBDIRS))
  23. $(foreach target,all install clean distclean,$(patsubst %,$(target)-%,$(SUBDIRS))):
  24. $(MAKE) $(MFLAGS) -C `echo $@ | sed s/[^-]*-//` `echo $@ | sed s/-.*//`
  25. .PHONY: all install clean distclean
  26. .PHONY: all-recursive install-recursive clean-recursive distclean-recursive