My build of dwm
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

33 linhas
1.1 KiB

  1. #!/usr/bin/make -f
  2. export DEB_BUILD_MAINT_OPTIONS = hardening=+all
  3. SHELL := sh -e
  4. %:
  5. dh ${@}
  6. override_dh_auto_clean:
  7. rm -f config.h
  8. $(MAKE) clean
  9. override_dh_auto_install:
  10. $(MAKE) install DESTDIR=$(CURDIR)/debian/dwm PREFIX=/usr
  11. mv debian/dwm/usr/bin/dwm debian/dwm/usr/bin/dwm.default
  12. ln -s dwm.1.gz debian/dwm/usr/share/man/man1/dwm.default.1.gz
  13. # Building alternatives
  14. for ALTERNATIVE in debian/local/config.*.h; \
  15. do \
  16. $(MAKE) clean; \
  17. cp $${ALTERNATIVE} config.h; \
  18. CFLAGS="$(CFLAGS)" $(MAKE) PREFIX=/usr; \
  19. install -m 0755 dwm debian/dwm/usr/bin/dwm.`basename $${ALTERNATIVE} | cut -d'.' -f 2`; \
  20. ln -s dwm.1.gz debian/dwm/usr/share/man/man1/dwm.`basename $${ALTERNATIVE} | cut -d'.' -f 2`.1.gz; \
  21. done
  22. # Configuring maintainer scripts
  23. sed -e "s|@ALTERNATIVES@|$(shell find debian/local/ -name 'config.*.h' | LC_ALL=C sort | cut -d'.' -f 2 | tr '\n' ' ')|" debian/dwm.postinst.in > debian/dwm.postinst
  24. sed -e "s|@ALTERNATIVES@|$(shell find debian/local/ -name 'config.*.h' | LC_ALL=C sort | cut -d'.' -f 2 | tr '\n' ' ')|" debian/dwm.prerm.in > debian/dwm.prerm