File: Makefile.am

package info (click to toggle)
makebootfat 1.4-8
  • links: PTS
  • area: main
  • in suites: bullseye, sid
  • size: 2,804 kB
  • sloc: sh: 3,118; ansic: 2,746; asm: 148; makefile: 92
file content (119 lines) | stat: -rw-r--r-- 2,480 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
bin_PROGRAMS = makebootfat

makebootfat_SOURCES = \
	makebootfat.c \
	disk.c \
	fat.c \
	error.c \
	part.c \
	getopt.c

noinst_HEADERS = \
	fat.h \
	disk.h \
	error.h \
	part.h \
	portable.h

man_MANS = doc/makebootfat.1

clean-local:
	rm -f makebootfat.exe
	rm -f mbrfat.lst
	rm -f check.raw
	rm -f -r check

maintainer-clean-local:
	rm -f README AUTHORS HISTORY INSTALL doc/copying.txt
	rm -f doc/*.hh
	rm -f mbrfat.bin

EXTRA_DIST = \
	autogen.sh \
	noautomake.sh \
	configure.windows \
	README AUTHORS HISTORY INSTALL COPYING \
	doc/makebootfat.1 \
	doc/makebootfat.d doc/history.d doc/readme.d doc/authors.d doc/install.d \
	doc/makebootfat.txt doc/history.txt doc/readme.txt doc/authors.txt doc/install.txt \
	doc/makebootfat.html doc/history.html doc/readme.html doc/authors.html doc/install.html \
	mbrfat.asm mbrfat.bin \
	test/test.raw test/blank.raw \
	test/ldlinux.bss test/ldlinux.sys \
	test/test.txt \
	test/subtest.txt

mbrfat.bin: mbrfat.asm
	nasm -O99 -f bin -l mbrfat.lst -o mbrfat.bin mbrfat.asm

check-local:
	rm -f check.raw
	rm -f -r check
	mkdir check
	mkdir check/dir
	cp $(srcdir)/test/subtest.txt check/dir
	cat $(srcdir)/test/blank.raw > check.raw
	./makebootfat -v -o check.raw -S 12345678 -t 12345678 -b $(srcdir)/test/ldlinux.bss -m $(srcdir)/mbrfat.bin \
		-F -c $(srcdir)/test/ldlinux.sys -c $(srcdir)/test/test.txt -O OEM12345678 -L LABEL123456 -Z -Y \
		check
	cmp check.raw $(srcdir)/test/test.raw
	echo Success!

# TODO

# Docs

%.1 : %.d
	advd2 man < $(srcdir)/$< > $@

%.txt : %.d
	advd2 txt < $(srcdir)/$< | todos > $@

%.html : %.d
	advd2 html < $(srcdir)/$< > $@

%.hh : %.d
	advd2 frame < $(srcdir)/$< > $@

# Archives

README: doc/readme.txt
	cat $< | fromdos > $@

AUTHORS: doc/authors.txt
	cat $< | fromdos > $@

INSTALL: doc/install.txt
	cat $< | fromdos > $@

HISTORY: doc/history.txt
	cat $< | fromdos > $@

doc/copying.txt: COPYING
	cat $< | todos > $@

DISTDOS_ROOT = \
	doc/readme.txt doc/authors.txt doc/history.txt doc/copying.txt \
	makebootfat.exe mbrfat.bin

DISTDOS_DOC = \
	doc/makebootfat.txt \
	doc/readme.txt doc/authors.txt doc/history.txt \
	doc/makebootfat.html \
	doc/readme.html doc/authors.html doc/history.html 

distwindows: $(DISTDOS_ROOT) $(DISTDOS_DOC)
	rm -f $(PACKAGE)-$(VERSION)-windows-pentium.zip
	mkdir tmp
	cp $(DISTDOS_ROOT) tmp
	mkdir tmp/doc
	cp $(DISTDOS_DOC) tmp/doc
	cd tmp && zip -r ../$(PACKAGE)-$(VERSION)-windows-pentium.zip *
	rm -r tmp

DISTWEB = \
	doc/makebootfat.hh

web: $(DISTWEB)