forked from dankamongmen/growlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
61 lines (45 loc) · 2.3 KB
/
Makefile.am
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
LANG=C
LC_ALL=c
AM_CFLAGS=-Wall -O2 -W -Wshadow -Werror -Wextra -fvisibility=hidden \
$(PTHREAD_CFLAGS) $(OPENSSL_INCLUDES) $(ZFS_CFLAGS)
AM_LDFLAGS=-Wl,-O2,--no-undefined-version,--enable-new-dtags,--as-needed,--warn-common
AM_CC=$(PTHREAD_CC)
LIBS+=$(PTHREAD_LIBS) $(OPENSSL_LIBS) $(ZFS_LIBS)
dist_man_MANS = growlight-readline.8 growlight-curses.8
doc_DIR=doc
doc_DATA=
doc_DATA+=README
EXTRA_DIST=zfs
dist_doc_DATA=
dist_doc_DATA+=COPYING growlight-readline.xhtml growlight-curses.xhtml
AM_CPPFLAGS=-D_GNU_SOURCE
bin_PROGRAMS=growlight-readline
bin_PROGRAMS+=growlight-curses
common_SOURCES=src/growlight.c src/growlight.h src/mbr.c src/mbr.h \
src/libblkid.c src/libblkid.h src/apm.c src/apm.h src/ssd.h src/ssd.c \
src/mdadm.c src/mdadm.h src/sysfs.c src/sysfs.h \
src/mounts.c src/mounts.h src/mmap.c src/mmap.h src/dmi.c src/dmi.h \
src/target.c src/target.h src/sg.c src/sg.h src/ptable.c src/ptable.h \
src/swap.c src/swap.h src/fs.c src/fs.h src/popen.c src/popen.h \
src/health.c src/health.h src/udev.c src/udev.h src/msdos.c src/msdos.h \
src/smart.c src/smart.h src/zfs.c src/zfs.h src/secure.c src/secure.h \
src/gpt.c src/gpt.h src/crc32.c src/crc32.h src/ptypes.c src/ptypes.h \
src/dm.c src/dm.h src/aggregate.c src/aggregate.h src/crypt.h \
src/crypt.c src/recipes.h src/recipes.c
growlight_readline_SOURCES=$(common_SOURCES)
growlight_readline_SOURCES+=src/readline.c
growlight_readline_LDADD:=$(CURSES_LIB)
growlight_curses_SOURCES=$(common_SOURCES)
growlight_curses_SOURCES+=src/ncurses.c src/ncurses.h src/ui-aggregate.h src/ui-aggregate.c
growlight_curses_LDADD:=$(PANEL_LIB) $(CURSES_LIB)
%.8: $(doc_DIR)/man/man8/%.xml $(doc_DIR)/@[email protected]
$(XSLTPROC) --path $(doc_DIR) -o $@ --nonet /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl $<
%.xhtml: $(doc_DIR)/man/man8/%.xml $(doc_DIR)/@[email protected]
$(XSLTPROC) --path $(doc_DIR) -o $@ --nonet /usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml-1_1/docbook.xsl $<
$(doc_DIR)/@[email protected]:
@mkdir -p $(@D)
echo -e '<!ENTITY dhfirstname "Nick">\n<!ENTITY dhsurname "Black">\n<!ENTITY dhemail "[email protected]">\n<!ENTITY dhusername "&dhfirstname; &dhsurname;">\n<!ENTITY dhrelease "$(VERSION)">' > "$@"
clean-local:
rm -rf $(MANS) $(doc_DIR)/@[email protected]
uninstall-local:
rmdir "$(DESTDIR)$(docdir)"