You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
504 B

  1. # avoid dpkg-dev dependency; fish out the version with sed
  2. VERSION := $(shell sed 's/.*(\(.*\)).*/\1/; q' debian/changelog)
  3. all:
  4. clean:
  5. DSDIR=$(DESTDIR)/usr/share/debootstrap
  6. install:
  7. mkdir -p $(DSDIR)/scripts
  8. mkdir -p $(DESTDIR)/usr/sbin
  9. cp -a scripts/* $(DSDIR)/scripts/
  10. install -o root -g root -m 0644 functions $(DSDIR)/
  11. sed 's/@VERSION@/$(VERSION)/g' debootstrap >$(DESTDIR)/usr/sbin/debootstrap
  12. chown root:root $(DESTDIR)/usr/sbin/debootstrap
  13. chmod 0755 $(DESTDIR)/usr/sbin/debootstrap