Makefile.in 814 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. VPATH = @srcdir@
  2. srcdir = @srcdir@
  3. top_srcdir = @top_srcdir@
  4. top_builddir = ..
  5. include ../Makefile.conf
  6. SOURCES = build.c extract.c info.c main.c
  7. OBJECTS = $(patsubst %.c, %.o, $(SOURCES))
  8. GENFILES = $(OBJECTS) dpkg-deb
  9. .PHONY: all
  10. all:: dpkg-deb
  11. .PHONY: install
  12. install:: all
  13. .PHONY: clean
  14. clean::
  15. $(RM) $(GENFILES)
  16. .PHONY: distclean
  17. cvslean:: clean
  18. $(RM) Makefile
  19. .PHONY: install
  20. install:: install-program install-doc
  21. .PHONY: install-program
  22. install-program:
  23. $(mkinstalldirs) $(DESTDIR)$(bindir)
  24. $(INSTALL) dpkg-deb $(DESTDIR)$(bindir)
  25. .PHONY: install-doc
  26. install-doc:
  27. $(mkinstalldirs) $(DESTDIR)$(man1dir)
  28. $(INSTALL_DATA) $(srcdir)/dpkg-deb.1 $(DESTDIR)$(man1dir)
  29. dpkg-deb: $(OBJECTS) ../lib/libdpkg.a
  30. $(CC) $(LDFLAGS) -L../lib -o $@ $(OBJECTS) $(LIBS) $(NLS_LIBS) $(ZLIB_LIBS) -ldpkg