-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
66 lines (52 loc) · 1.79 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
62
63
64
65
# conditional directories are always automatically added to DIST_SUBDIRS
# (but not if DIST_SUBDIRS is manually overwritten)
if ECLPREPROC
MAYBE_FSPP = fspp
endif
SUBDIRS = common flop $(MAYBE_FSPP) cheap
EXTRA_DIST = BUGS CHANGELOG LICENSE README TODO \
doxyconfig.cheap.in doxyconfig.flop.in \
sample
# Tell aclocal where to find local and third-party M4 macros (aclocal >= 1.6)
ACLOCAL_AMFLAGS = -I m4
# For ebrowse (Emacs)
BROWSE:
echo `find $(topsrc_dir) -name '*.h' -print ` \
`find $(topsrc_dir) \( -name '*.c' -o -name '*.cpp' \) -print` | \
tr ' ' '\n'| ebrowse
# Remove meta files that might end up in the distribution via EXTRA_DIST:
dist-hook:
rm -rf $(find -type d -name .svn)
rm -f $(find -type d -name "*.grm")
sign: dist
gpg --detach-sign --armor $(distdir).tar.gz
md5sum $(distdir).tar.gz | gpg --clearsign > $(distdir).tar.gz.md5sum
bindist: all
$(am__remove_distdir)
mkdir -p $(distdir)/bin
mkdir -p $(distdir)/lib
cp cheap/cheap $(distdir)/bin
cp flop/flop $(distdir)/bin
ldd cheap/cheap flop/flop | perl -ne ' print "cp $$2 $(distdir)/lib\n" if /(.+)\s+=>\s+(.+) \([0-9a-fx]+\)/ && !($$2 =~ /^\/lib/)' | sort -u | bash
tar -czf $(distdir)_bin.tar.gz $(distdir)
$(am__remove_distdir)
clean-local:
-rm $(distdir)_bin.tar.gz
# Dependencies: all source files of the distribution
# Should be done when the distribution is made
if DOCBUILDERS
doc: flopdoc cheapdoc
flopdoc:
mkdir -p doc/flop
$(DOXYGEN) doxyconfig.flop
cheapdoc:
mkdir -p doc/cheap
$(DOXYGEN) doxyconfig.cheap
logon:
strip flop/flop cheap/cheap
/bin/cp flop/flop cheap/cheap $$LOGONROOT/uio/bin/$$LOGONOS
test:
strip flop/flop cheap/cheap
/bin/cp flop/flop $$LOGONROOT/uio/bin/linux.x86.32/tflop
/bin/cp cheap/cheap $$LOGONROOT/uio/bin/linux.x86.32/tcheap
endif