Makefile.in 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. VPATH = @srcdir@
  2. srcdir = @srcdir@
  3. top_srcdir = @top_srcdir@
  4. default: all
  5. include ../Makefile.conf
  6. SPLIT_SOURCES = queue.c split.c info.c join.c main.c
  7. SPLIT_OBJECTS = $(patsubst %.c, %.o, $(SPLIT_SOURCES))
  8. GENFILES = $(SPLIT_OBJECTS) dpkg-split
  9. .PHONY: all
  10. all:: dpkg-split
  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-split $(DESTDIR)$(bindir)
  25. $(mkinstalldirs) $(DESTDIR)/$(admindir)/parts
  26. $(mkinstalldirs) $(DESTDIR)/$(dpkglibdir)
  27. $(INSTALL) $(srcdir)/mksplit.pl $(DESTDIR)/$(dpkglibdir)/mksplit
  28. .PHONY: install-doc
  29. install-doc:
  30. $(mkinstalldirs) $(DESTDIR)/$(man8dir)
  31. $(INSTALL_DATA) $(srcdir)/dpkg-split.8 $(DESTDIR)/$(man8dir)
  32. dpkg-split: $(SPLIT_OBJECTS)
  33. $(CC) $(LDFLAGS) -o $@ $(SPLIT_OBJECTS) $(LIBS) $(NLS_LIBS)
  34. split.o: split.c
  35. $(CC) $(ALL_CFLAGS) -DMKSPLITSCRIPT=\"$(dpkglibdir)/mksplit\" -c $<