37 |
OTHERSRC = keywords |
OTHERSRC = keywords |
38 |
ALLSRC = $(NASMSRC) $(NASMHDR) $(CSRC) $(CHDR) $(OTHERSRC) |
ALLSRC = $(NASMSRC) $(NASMHDR) $(CSRC) $(CHDR) $(OTHERSRC) |
39 |
|
|
40 |
|
MKINITRD_VERSION = $(shell cat ../VERSION) |
41 |
|
|
42 |
|
DOCS = COPYING NEWS README TODO BUGS VERSION isolinux.txt |
43 |
|
|
44 |
|
LIBDIR = /usr/lib/mkinitrd |
45 |
|
DOCDIR = /usr/share/doc/mkinitrd-$(MKINITRD_VERSION)/isolinux |
46 |
|
|
47 |
# The DATE is set on the make command line when building binaries for |
# The DATE is set on the make command line when building binaries for |
48 |
# official release. Otherwise, substitute a hex string that is pretty much |
# official release. Otherwise, substitute a hex string that is pretty much |
49 |
# guaranteed to be unique to be unique from build to build. |
# guaranteed to be unique to be unique from build to build. |
77 |
$(OBJDUMP) -h $@ > $(@:.elf=.sec) |
$(OBJDUMP) -h $@ > $(@:.elf=.sec) |
78 |
$(PERL) lstadjust.pl $(@:.elf=.lsr) $(@:.elf=.sec) $(@:.elf=.lst) |
$(PERL) lstadjust.pl $(@:.elf=.lsr) $(@:.elf=.sec) $(@:.elf=.lst) |
79 |
|
|
80 |
install: installer |
install: |
81 |
|
mkdir -p $(DESTDIR)/$(LIBDIR) |
82 |
install-lib: installer |
mkdir -p $(DESTDIR)/$(DOCDIR) |
83 |
|
install -m755 -c isolinux.bin $(DESTDIR)/$(LIBDIR) |
84 |
install-all: install install-lib |
for n in $(DOCS); do install -m644 $$n $(DESTDIR)/$(DOCDIR); done |
|
|
|
|
netinstall: installer |
|
85 |
|
|
86 |
tidy dist: |
tidy dist: |
87 |
rm -f codepage.cp *.o *.elf stupid.* patch.offset .depend .*.d |
rm -f codepage.cp *.o *.elf stupid.* patch.offset .depend .*.d |