File: Makefile.am

package info (click to toggle)
missidentify 1.0-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 608 kB
  • sloc: sh: 3,416; ansic: 1,889; makefile: 33
file content (53 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download | duplicates (6)
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

bin_PROGRAMS=missidentify

missidentify_SOURCES = main.c dig.c check.c helpers.c ui.c cycles.c \
                       main.h tchar-local.h

man_MANS=missidentify.1

EXTRA_DIST=$(man_MANS) config.guess config.sub sample.c sample.jpg

# ----------------------------------------------------------------------
# Packaging

WINDOWSDOCS=README.TXT NEWS.TXT USAGE.TXT

README.TXT: README
	cp README README.TXT

USAGE.TXT: $(man_MANS)
	man ./missidentify.1 | col -bx > USAGE.TXT

NEWS.TXT:NEWS
	cp NEWS NEWS.TXT

win-docs: $(WINDOWSDOCS)
	flip -d $(WINDOWSDOCS)
#       unix2dos $(WINDOWSDOCS)

win-package: win-docs
	rm -rf $(distdir).zip $(distdir)
	make
	$(STRIP) missidentify.exe
	mkdir $(distdir)
	cp $(WINDOWSDOCS) missidentify.exe sample.{c,jpg} $(distdir)
	zip -r9 $(distdir).zip $(distdir)
	rm -rf $(distdir) $(WINDOWSDOCS)

world: distclean
	./configure --host=mingw32
	make win-package
	make dist


# ----------------------------------------------------------------------
# Cleanup code

nice:
	rm -f *~

preflight:
	@grep RBF $(DISTFILES)